Skip to content

Commit 8788ab7

Browse files
sarahsJamesMGreene
andauthored
Continue on error during link check (#16442)
* continue on error * use failure instead of continue-on-error * Update .github/workflows/check-all-english-links.yml Co-authored-by: James M. Greene <[email protected]> * add missing colon Co-authored-by: James M. Greene <[email protected]>
1 parent 39bad0e commit 8788ab7

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

.github/workflows/check-all-english-links.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,11 @@ jobs:
1818
run: npm run build
1919
- name: Run script
2020
run: script/check-english-links.js > broken_links.md
21-
- name: Check if any broken links
21+
- if: ${{ failure() }}
22+
name: Get title for issue
2223
id: check
23-
run: |
24-
if [ "$(grep '0 broken links found' broken_links.md)" ]; then
25-
echo ::set-output name=continue::no
26-
else
27-
echo "::set-output name=continue::yes"
28-
echo "::set-output name=title::$(head -1 broken_links.md)"
29-
fi
30-
- if: ${{ steps.check.outputs.continue == 'yes' }}
24+
run: echo "::set-output name=title::$(head -1 broken_links.md)"
25+
- if: ${{ failure() }}
3126
name: Create issue from file
3227
uses: peter-evans/create-issue-from-file@35e304e2a12caac08c568247a2cb46ecd0c3ecc5
3328
with:

0 commit comments

Comments
 (0)