Skip to content

Commit 9661183

Browse files
authored
Merge pull request #105 from pp-mo/linkcheck_testing
Selectively fail workflow at end.
2 parents b2fbebb + 07b927a commit 9661183

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/ci-linkchecks.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
id: lychee
1818
uses: lycheeverse/lychee-action@v2
1919
with:
20-
fail: true
20+
fail: false
2121
args: "--verbose './docs/**/*.rst' './docs/**/*.inc' './lib/**/*.py'"
2222

2323
- name: Create Issue From File
@@ -27,3 +27,8 @@ jobs:
2727
title: Link Checker Report
2828
content-filepath: ./lychee/out.md
2929
labels: report, automated issue
30+
31+
- name: Fail Workflow On Link Errors
32+
if: steps.lychee.outputs.exit_code != 0
33+
run:
34+
exit {{ steps.lychee.outputs.exit_code }}

0 commit comments

Comments
 (0)