diff --git a/.github/workflows/pre-commit.yaml b/.github/workflows/pre-commit.yaml index 3a784549..f52beb9b 100644 --- a/.github/workflows/pre-commit.yaml +++ b/.github/workflows/pre-commit.yaml @@ -140,7 +140,7 @@ jobs: echo "has-fixes=true" >> "$GITHUB_OUTPUT" - name: Upload autofix patch - if: ${{ steps.capture.outputs.has-fixes == 'true' }} + if: ${{ failure() && steps.capture.outputs.has-fixes == 'true' }} uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: name: autofix-patch