Links Checker #308
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Links Checker | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "0 0 * * *" | |
| jobs: | |
| links-checker: | |
| name: Check links and create/update issue | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| - name: Check all links | |
| id: lychee | |
| uses: lycheeverse/lychee-action@a8c4c7cb88f0c7386610c35eb25108e448569cb0 # v2.7.0 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| fail: false | |
| - name: Find the last report issue open | |
| uses: micalevisk/last-issue-action@0d40124cc99ac8601c2516007f0c98ef3d27537b # v2.3.0 | |
| id: last-issue | |
| with: | |
| state: open | |
| labels: broken-links | |
| - name: Create or update report | |
| if: steps.lychee.outputs.exit_code != 0 | |
| uses: peter-evans/create-issue-from-file@fca9117c27cdc29c6c4db3b86c48e4115a786710 # v6.0.0 | |
| with: | |
| title: Link checker report | |
| content-filepath: ./lychee/out.md | |
| issue-number: ${{ steps.last-issue.outputs.issue-number }} | |
| labels: broken-links |