-
Notifications
You must be signed in to change notification settings - Fork 123
38 lines (34 loc) · 1.03 KB
/
external-links.yml
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
name: Link check
on:
workflow_dispatch: # on demand launches, if needed
schedule:
- cron: "5 0 * * 2" # 00:05 on Tuesday, near the dependabot.yml
jobs:
linkcheck:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: (docs) Check broken HTTP(S) links
uses: lycheeverse/lychee-action@v2
id: lychee
with:
args: >
-n -s https -s http --base 'https://docs.tact-lang.org'
--exclude-path docs/node_modules
--exclude '\.(?:jpg|png)$'
docs/README.md './docs/**/*.mdx'
output: "/dev/stdout"
fail: false
failIfEmpty: false
- name: (dev-docs) Check broken HTTP(S) links
uses: lycheeverse/lychee-action@v2
id: lychee_dev
with:
args: >
-n -s https -s http
--exclude-path node_modules --exclude-path docs
'./**/*.md'
output: "/dev/stdout"
fail: false
failIfEmpty: false