Skip to content

Commit e0aaafe

Browse files
authored
fix: issue creation for broken links (#151)
* fix if condition for issue creation * switch to check exit code * cleanup
1 parent 13563fe commit e0aaafe

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

.github/workflows/check-broken-links-schedule.yaml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -55,17 +55,8 @@ jobs:
5555
format: markdown
5656
output: ./lychee-external-report.md
5757

58-
- name: Check report content
59-
id: check-report
60-
run: |
61-
if [ -f ./lychee-external-report.md ] && [ -s ./lychee-external-report.md ] && grep -q "Broken links found" ./lychee-external-report.md; then
62-
echo "broken_links=true" >> $GITHUB_OUTPUT
63-
else
64-
echo "broken_links=false" >> $GITHUB_OUTPUT
65-
fi
66-
6758
- name: Create issue
68-
if: steps.lychee-external.outputs.exit_code != 0 && steps.check-report.outputs.broken_links == 'true'
59+
if: steps.lychee-external.outputs.exit_code != '0'
6960
uses: peter-evans/create-issue-from-file@v5
7061
with:
7162
title: 🔍 External Broken Links Report

0 commit comments

Comments
 (0)