diff --git a/.github/workflows/link_checker_workflow.yaml b/.github/workflows/link_checker_workflow.yaml index f5a1e98e686..12a45caf14d 100644 --- a/.github/workflows/link_checker_workflow.yaml +++ b/.github/workflows/link_checker_workflow.yaml @@ -77,7 +77,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Create PR Comment - if: env.HAS_CHANGES == 'true' && steps.lychee-check.outputs.status != '0' + if: env.HAS_CHANGES == 'true' && steps.lychee-check.outcome == 'failure' uses: peter-evans/create-or-update-comment@v4 with: issue-number: ${{ github.event.pull_request.number }}