We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fdedced commit 0c3d27bCopy full SHA for 0c3d27b
.github/workflows/check-external-links.yml
@@ -34,7 +34,7 @@ jobs:
34
env:
35
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36
- name: Comment on PR if broken links found
37
- if: ${{ always() && steps.lychee.outputs.exit_code != 0 }}
+ if: ${{ steps.lychee.outputs.exit_code && steps.lychee.outputs.exit_code != '0' }}
38
uses: thollander/actions-comment-pull-request@v3
39
with:
40
message: |
@@ -49,5 +49,5 @@ jobs:
49
50
51
- name: Fail if broken links found
52
- if: ${{ steps.lychee.outputs.exit_code != 0 }}
+ if: ${{ failure() || (steps.lychee.outputs.exit_code && steps.lychee.outputs.exit_code != '0') }}
53
run: exit 1
0 commit comments