diff --git a/.github/workflows/pr_fmt.yaml b/.github/workflows/pr_fmt.yaml index 5e7b997afd..8448f383da 100644 --- a/.github/workflows/pr_fmt.yaml +++ b/.github/workflows/pr_fmt.yaml @@ -33,7 +33,7 @@ jobs: continue-on-error: true - name: Post PR comment on fmt failure - if: env.fmt_outcome != '0' + if: ${{ steps.fmt_check.outcome == 'failure' }} uses: actions/github-script@v7 with: github-token: ${{secrets.GITHUB_TOKEN}}