|
| 1 | +name: Check documentation links |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + paths: |
| 6 | + - ".github/workflows/check-links.yml" |
| 7 | + - "Taskfile.yml" |
| 8 | + - "**.md" |
| 9 | + pull_request: |
| 10 | + paths: |
| 11 | + - ".github/workflows/check-links.yml" |
| 12 | + - "Taskfile.yml" |
| 13 | + - "**.md" |
| 14 | + schedule: |
| 15 | + # Run every Tuesday at 03:00 UTC to catch broken links caused by external changes |
| 16 | + - cron: "0 3 * * 2" |
| 17 | + |
| 18 | +jobs: |
| 19 | + check-links: |
| 20 | + runs-on: ubuntu-latest |
| 21 | + steps: |
| 22 | + - name: Checkout local repository |
| 23 | + uses: actions/checkout@v2 |
| 24 | + |
| 25 | + - name: Install Taskfile |
| 26 | + uses: arduino/actions/setup-taskfile@master |
| 27 | + with: |
| 28 | + repo-token: ${{ secrets.GITHUB_TOKEN }} |
| 29 | + version: 3.x |
| 30 | + |
| 31 | + - name: Check links |
| 32 | + run: task --silent docs:check-links |
0 commit comments