-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (58 loc) · 1.72 KB
/
Copy pathexternal-links.yml
File metadata and controls
67 lines (58 loc) · 1.72 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: External link check
on:
workflow_dispatch: # on demand launches, if needed
schedule:
- cron: "5 0 * * 2" # 00:05 on Tuesday, near the dependabot.yml
permissions: read-all
env:
# To surpass rate limits for GitHub-based URLS
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
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: true
failIfEmpty: false
linkcheck-dev:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- 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: true
failIfEmpty: false
linkcheck-stdlib:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: (stdlib) Check broken HTTP(S) links in doc comments
uses: lycheeverse/lychee-action@v2
id: lychee-stdlib
with:
args: >
-n -s https -s http
'./src/stdlib/stdlib/**/*.tact'
output: "/dev/stdout"
fail: true
failIfEmpty: false