forked from fastify/fastify
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (31 loc) · 996 Bytes
/
links-check.yml
File metadata and controls
35 lines (31 loc) · 996 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Internal Links Check
on:
pull_request:
paths:
- 'docs/**'
- '*.md'
permissions:
contents: read
jobs:
linkChecker:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Check out repo
uses: actions/checkout@v5
with:
persist-credentials: false
# It will be possible to check only for the links in the changed files
# See: https://github.com/lycheeverse/lychee-action/issues/17
- name: Link Checker
id: lychee
uses: lycheeverse/lychee-action@a8c4c7cb88f0c7386610c35eb25108e448569cb0 # v2.7.0
with:
fail: true
# As external links behavior is not predictable, we check only internal links
# to ensure consistency.
# See: https://github.com/lycheeverse/lychee-action/issues/17#issuecomment-1162586751
args: --offline --verbose --no-progress './**/*.md'
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}