-
Notifications
You must be signed in to change notification settings - Fork 2
45 lines (37 loc) · 974 Bytes
/
linkcheck.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
39
40
41
42
43
44
45
name: Markdown
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
on:
push:
branches: [master, dev]
pull_request:
types: [review_requested, ready_for_review]
env:
CARGO_TERM_COLOR: always
jobs:
linkCheck:
name: "Lint"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Skip if unchanged
id: changed-files-specific
uses: tj-actions/changed-files@v20
with:
files: |
*.md
*.markdown
- name: Restore lychee cache
uses: actions/cache@v3
with:
path: .lycheecache
key: cache-lychee-${{ github.sha }}
restore-keys: cache-lychee-
- name: Link Checker
uses: lycheeverse/[email protected]
with:
args: "--verbose --cache --max-cache-age 1d ."
fail: true