Skip to content

Commit 2ffe587

Browse files
Fix if expressions in GitHub actions
`${{ steps.lychee.outputs.exit_code }} != 0` evaluates to `"0 != 0"` (a string), and becomes `true` when GitHub coerces its type. Relates-to: lycheeverse#262
1 parent f81112d commit 2ffe587

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/links.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
2525

2626
- name: Create Issue From File
27-
if: ${{ steps.lychee.outputs.exit_code }} != 0
27+
if: steps.lychee.outputs.exit_code != 0
2828
uses: peter-evans/create-issue-from-file@v5
2929
with:
3030
title: Link Checker Report

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
uses: lycheeverse/lychee-action@v2
3838

3939
- name: Create Issue From File
40-
if: ${{ steps.lychee.outputs.exit_code }} != 0
40+
if: steps.lychee.outputs.exit_code != 0
4141
uses: peter-evans/create-issue-from-file@v5
4242
with:
4343
title: Link Checker Report

0 commit comments

Comments
 (0)