Skip to content

Commit

Permalink
check-links: bump lychee-action (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiaanspeck authored Oct 7, 2024
1 parent 550241b commit 66e139b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/check-links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ jobs:
path: ${{ env.LYCHEE_INPUT_FILE }}

- name: Lychee URL checker
uses: lycheeverse/lychee-action@v1
uses: lycheeverse/lychee-action@master
id: lychee
continue-on-error: true
with:
jobSummary: false
args: >-
Expand Down Expand Up @@ -72,7 +73,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Update last report open issue created
if: ${{ github.repository == 'tldr-pages/tldr-maintenance' && github.ref == 'refs/heads/main' && env.lychee_exit_code != 0 }}
if: ${{ github.repository == 'tldr-pages/tldr-maintenance' && github.ref == 'refs/heads/main' && steps.lychee.outputs.exit_code != 0 }}
uses: peter-evans/create-issue-from-file@v5
with:
title: Link checker report
Expand All @@ -81,7 +82,7 @@ jobs:
labels: check links

- name: Close last report open issue
if: ${{ github.repository == 'tldr-pages/tldr-maintenance' && github.ref == 'refs/heads/main' && env.lychee_exit_code == 0 && steps.last-issue.outputs.has-found == 'true' }}
if: ${{ github.repository == 'tldr-pages/tldr-maintenance' && github.ref == 'refs/heads/main' && steps.lychee.outputs.exit_code == 0 && steps.last-issue.outputs.has-found == 'true' }}
run: gh issue close ${{ steps.last-issue.outputs.issue-number }}

- name: Save lychee cache
Expand Down

0 comments on commit 66e139b

Please sign in to comment.