Skip to content

Commit d628049

Browse files
committed
Fix link checker not creating issues
Due to hidden change of how exit code is handled in https://github.com/lycheeverse/lychee-action/releases/tag/v2.0.0 Don't write 3 sentences about what has changed in the context of X; simply write: * Replace ``env.lychee_exit_code`` with ``steps.lychee.outputs.exit_code`` like you somehow did on the Readme?
1 parent 307e818 commit d628049

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/broken-links.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ jobs:
3030
GH_TOKEN: ${{ github.token }}
3131

3232
- name: Close issue if everything is fine
33-
if: env.lychee_exit_code == 0 && steps.find-issue.outputs.number != ''
33+
if: steps.lychee.outputs.exit_code == 0 == 0 && steps.find-issue.outputs.number != ''
3434
run: gh issue close -r 'not planned' ${{ steps.find-issue.outputs.number }}
3535
env:
3636
GH_TOKEN: ${{ github.token }}
3737

3838
- name: Create Issue From File
39-
if: env.lychee_exit_code != 0
39+
if: steps.lychee.outputs.exit_code == 0 != 0
4040
uses: peter-evans/create-issue-from-file@e8ef132d6df98ed982188e460ebb3b5d4ef3a9cd # v5
4141
with:
4242
issue-number: ${{ steps.find-issue.outputs.number }}

0 commit comments

Comments
 (0)