forked from api3dao/old-api3-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (42 loc) · 1.33 KB
/
check-links-imgs.yaml
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
name: Check links and images
on:
push:
branches:
- main
pull_request:
jobs:
lychee_link_img_check:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Cache lychee
id: cache-lychee
uses: actions/cache@v2
with:
path: ~/.cargo/bin/
key: ${{ runner.os }}-lychee-
- uses: actions-rs/toolchain@v1
if: steps.cache-lychee.outputs.cache-hit != 'true'
with:
toolchain: stable
- name: Run cargo install
if: steps.cache-lychee.outputs.cache-hit != 'true'
uses: actions-rs/cargo@v1
with:
command: install
args: --git https://github.com/lycheeverse/lychee --rev dd9e24b7f454d9f08eb24c170cc757e134432210
- name: Link Checker
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: >
find docs/
-not -path "*/.vuepress/*"
-not -path "docs/airnode/pre-alpha/*"
-not -path "docs/airnode/v0.2/*"
-not -path "docs/airnode/v0.3/*"
-not -path "docs/airnode/v0.4/*"
-not -path "docs/airnode/v0.5/*"
-not -path "docs/airnode/v0.6/*"
-not -path "docs/airnode/v0.9/*"
-not -path "docs/airnode/v0.10/*"
-type f -name "*.md" | xargs lychee - -c .github/workflows/lychee.toml