forked from lycheeverse/lychee-action
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (34 loc) · 920 Bytes
/
test_cache.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
on:
- repository_dispatch
- workflow_dispatch
- push
- pull_request
jobs:
lychee-action:
runs-on: ubuntu-latest
continue-on-error: true
name: Test cache
steps:
- name: Restore lychee cache
uses: actions/cache@v4
with:
path: .lycheecache
key: cache-lychee-${{ github.sha }}
restore-keys: cache-lychee-
- uses: actions/checkout@v4
- name: Lychee URL checker
uses: lycheeverse/lychee-action@v1
with:
args: >-
--cache
--verbose
--no-progress
'./**/*.md'
'./**/*.html'
'./**/*.rst'
# Fail the action on broken links.
# If the pipeline fails, the cache will _not_ be stored
fail: true
env:
# to be used in case rate limits are surpassed
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}