Skip to content

Commit 30f17a2

Browse files
committed
ci: Work around github rate limiting in link check
changelog: ignore
1 parent 69ccd61 commit 30f17a2

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.github/workflows/link_checker.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ jobs:
2828
- uses: actions/checkout@v4
2929

3030
- name: Restore lychee cache
31-
uses: actions/cache@v4
31+
id: restore_cache
32+
uses: actions/cache/restore@v4
3233
with:
3334
path: .lycheecache
3435
key: cache-lychee-${{ github.sha }}
@@ -39,12 +40,23 @@ jobs:
3940
id: lychee_run
4041
with:
4142
args: |
42-
--cache
4343
--verbose
4444
--no-progress
45+
--cache
46+
--cache-exclude-status 400..
47+
--max-concurrency 1
48+
--max-retries 1
49+
--retry-wait-time 60
4550
'.'
4651
continue-on-error: true
4752

53+
- name: Save lychee cache
54+
uses: actions/cache/save@v4
55+
if: ${{ !cancelled() }}
56+
with:
57+
path: .lycheecache
58+
key: ${{ steps.restore_cache.outputs.cache-primary-key }}
59+
4860
- name: List open issues
4961
if: github.ref == 'refs/heads/master'
5062
id: open_issues

0 commit comments

Comments
 (0)