Skip to content

Commit 3a2722e

Browse files
authored
Merge pull request #9 from arduino/check-links-workflow
Add CI workflow to check for broken links in documentation
2 parents b68c873 + 3ab24e5 commit 3a2722e

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

Diff for: .github/workflows/check-links.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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

Comments
 (0)