Skip to content

Commit 0c3d27b

Browse files
committed
fix(ci): external links check
1 parent fdedced commit 0c3d27b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/check-external-links.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
env:
3535
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3636
- name: Comment on PR if broken links found
37-
if: ${{ always() && steps.lychee.outputs.exit_code != 0 }}
37+
if: ${{ steps.lychee.outputs.exit_code && steps.lychee.outputs.exit_code != '0' }}
3838
uses: thollander/actions-comment-pull-request@v3
3939
with:
4040
message: |
@@ -49,5 +49,5 @@ jobs:
4949
env:
5050
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5151
- name: Fail if broken links found
52-
if: ${{ steps.lychee.outputs.exit_code != 0 }}
52+
if: ${{ failure() || (steps.lychee.outputs.exit_code && steps.lychee.outputs.exit_code != '0') }}
5353
run: exit 1

0 commit comments

Comments
 (0)