Add Voidly CLI to Developer Tools #7
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: Link Check | |
| on: | |
| schedule: | |
| - cron: '0 7 * * 1' # Weekly Monday 7am UTC | |
| push: | |
| paths: | |
| - 'README.md' | |
| workflow_dispatch: | |
| jobs: | |
| link-check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Check links | |
| uses: lycheeverse/lychee-action@v1 | |
| with: | |
| args: >- | |
| --exclude-mail | |
| --exclude-path .lycheeignore | |
| --accept 200,204,301,302,307,308 | |
| --timeout 30 | |
| --max-retries 3 | |
| README.md | |
| fail: true | |
| - name: Create issue on failure | |
| if: failure() | |
| uses: actions/github-script@v7 | |
| with: | |
| script: | | |
| const title = `Link check failed — ${new Date().toISOString().slice(0, 10)}`; | |
| const body = 'The weekly link check found broken links. Check the [workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) for details.'; | |
| await github.rest.issues.create({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| title, | |
| body, | |
| labels: ['maintenance'] | |
| }); |