Check Broken Links #3
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: "Check Broken Links" | |
| on: | |
| repository_dispatch: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "0 0 1 * *" # At 00:00 on day-of-month 1 | |
| permissions: | |
| contents: read | |
| jobs: | |
| linkChecker: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| issues: write # required for peter-evans/create-issue-from-file | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - name: Link Checker | |
| id: lychee | |
| uses: lycheeverse/lychee-action@885c65f3dc543b57c898c8099f4e08c8afd178a2 # v2.6.1 | |
| with: | |
| args: > | |
| --max-concurrency 1 | |
| --no-progress | |
| --exclude-path vendor | |
| --exclude-path internal | |
| --exclude-path CHANGELOG.md | |
| --scheme https | |
| --scheme http | |
| --accept 200..=206,403,429 | |
| --retry-wait-time 5 | |
| --max-retries 1 | |
| . | |
| fail: false | |
| - name: Show Report | |
| run: cat lychee/out.md | |
| - name: Create Issue From File | |
| if: steps.lychee.outputs.exit_code != 0 | |
| uses: peter-evans/create-issue-from-file@e8ef132d6df98ed982188e460ebb3b5d4ef3a9cd # v5.0.1 | |
| with: | |
| title: "docs: Link Checker Report" | |
| content-filepath: ./lychee/out.md | |
| labels: report, automated issue |