Links Checker #75
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 automated issue if needed | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - name: Check all links at *.md and doc files | |
| id: lychee | |
| uses: lycheeverse/lychee-action@885c65f3dc543b57c898c8099f4e08c8afd178a2 # v2.6.1 | |
| 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@e8ef132d6df98ed982188e460ebb3b5d4ef3a9cd # v5.0.1 | |
| with: | |
| title: Link checker report | |
| content-filepath: ./lychee/out.md | |
| issue-number: ${{ steps.last-issue.outputs.issue-number }} | |
| labels: broken-links |