diff --git a/.github/workflows/links.yml b/.github/workflows/links.yml index 1f078fe..374af07 100644 --- a/.github/workflows/links.yml +++ b/.github/workflows/links.yml @@ -15,6 +15,7 @@ jobs: - uses: actions/checkout@v4 - name: Link Checker + id: lychee uses: ./ # Uses an action in the root directory with: args: --user-agent "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:59.0) Gecko/20100101 Firefox/59.0" --verbose --exclude spinroot.com --no-progress './**/*.md' './**/*.html' './**/*.rst' @@ -23,7 +24,7 @@ jobs: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - name: Create Issue From File - if: env.exit_code != 0 + if: ${{ steps.lychee.outputs.exit_code }} != 0 uses: peter-evans/create-issue-from-file@v5 with: title: Link Checker Report diff --git a/README.md b/README.md index e36e604..211ef26 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ jobs: uses: lycheeverse/lychee-action@v2 - name: Create Issue From File - if: env.exit_code != 0 + if: ${{ steps.lychee.outputs.exit_code }} != 0 uses: peter-evans/create-issue-from-file@v5 with: title: Link Checker Report