diff --git a/.github/workflows/build_python_connect.yml b/.github/workflows/build_python_connect.yml index 3a9ce51157419..639b0d0843142 100644 --- a/.github/workflows/build_python_connect.yml +++ b/.github/workflows/build_python_connect.yml @@ -118,7 +118,7 @@ jobs: name: test-results-spark-connect-python-only path: "**/target/test-reports/*.xml" - name: Upload Spark Connect server log file - if: failure() + if: ${{ !success() }} uses: actions/upload-artifact@v4 with: name: unit-tests-log-spark-connect-python-only diff --git a/.github/workflows/build_python_connect35.yml b/.github/workflows/build_python_connect35.yml index 8c9a5fa86996e..14edb8bf91ed8 100644 --- a/.github/workflows/build_python_connect35.yml +++ b/.github/workflows/build_python_connect35.yml @@ -106,7 +106,7 @@ jobs: name: test-results-spark-connect-python-only path: "**/target/test-reports/*.xml" - name: Upload Spark Connect server log file - if: failure() + if: ${{ !success() }} uses: actions/upload-artifact@v4 with: name: unit-tests-log-spark-connect-python-only