-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (34 loc) · 1.08 KB
/
Copy pathlinks.yml
File metadata and controls
39 lines (34 loc) · 1.08 KB
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
36
37
38
39
name: Links
on:
push:
branches: [main]
paths: ["**.md", "lychee.toml", ".github/workflows/links.yml"]
pull_request:
branches: [main]
paths: ["**.md", "lychee.toml", ".github/workflows/links.yml"]
schedule:
# Weekly sweep catches external links that rot while no doc changes.
- cron: "17 6 * * 1"
workflow_dispatch:
permissions:
contents: read
concurrency:
group: links-${{ github.ref }}
cancel-in-progress: true
jobs:
lychee:
name: Link check
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Check links
uses: lycheeverse/lychee-action@e7477775783ea5526144ba13e8db5eec57747ce8 # v2.9.0
with:
# lychee picks up ./lychee.toml automatically; args stay minimal on purpose.
args: --no-progress --root-dir "${{ github.workspace }}" .
fail: true
env:
# Authenticated github.com link checks avoid anonymous rate limits.
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}