Skip to content

Commit d12e35b

Browse files
committed
Add link validation workflow
1 parent d4e5e66 commit d12e35b

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/link-validation.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Verifies documentation links
2+
3+
on:
4+
push:
5+
pull_request:
6+
schedule:
7+
- cron: "0 3 * * 1" # Every Monday at 03:00
8+
9+
jobs:
10+
verify-links:
11+
# Don't trigger on schedule event when in a fork
12+
if: github.event_name != 'schedule' || (github.event_name == 'schedule' && github.repository == 'arduino/FirmwareUpdater')
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v2
16+
with:
17+
fetch-depth: 1
18+
19+
- name: Install Taskfile
20+
uses: Arduino/actions/setup-taskfile@master
21+
with:
22+
repo-token: ${{ secrets.GITHUB_TOKEN }}
23+
version: 3.x
24+
25+
- name: Verify links
26+
run: task docs:check-links

0 commit comments

Comments
 (0)