Skip to content

Commit

Permalink
chore(ci): fix links checker (#3921)
Browse files Browse the repository at this point in the history
* chore(ci): fix links checker

* remove GITHUB_TOKEN

* remove automatic issue closing

* dprint
  • Loading branch information
thibault-martinez authored Nov 6, 2024
1 parent 87149d2 commit d540fba
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/links_checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,24 +38,16 @@ jobs:
'./**/*.md'
- name: Find the last report issue open
uses: micalevisk/last-issue-action@305829d9728f47beb0029417167a0af890edfd6e # pin@v2.1
id: last_issue
uses: micalevisk/last-issue-action@0d40124cc99ac8601c2516007f0c98ef3d27537b # pin@v2.3
id: last-issue
with:
state: open
labels: broken-links
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create or update report
uses: peter-evans/create-issue-from-file@e8ef132d6df98ed982188e460ebb3b5d4ef3a9cd # pin@v4
with:
title: Link checker report
content-filepath: ${{ env.LYCHEE_OUT }}
issue-number: ${{ steps.last_issue.outputs.issue_number }}
issue-number: ${{ steps.last-issue.outputs.issue-number }}
labels: broken-links

- name: Close last report open issue
if: steps.lychee.outputs.exit_code == 0
uses: peter-evans/close-issue@276d7966e389d888f011539a86c8920025ea0626 # pin@v3
with:
issue-number: ${{ steps.last_issue.outputs.issue_number }}

0 comments on commit d540fba

Please sign in to comment.