Skip to content

Commit a80077a

Browse files
dmathieupellared
andauthored
Use lychee cache (#6161)
A few months ago, we enabled lychee cache in the SDK repo, to prevent rate limit issues, but forgot to enable it here. open-telemetry/opentelemetry-go#5160 --------- Co-authored-by: Robert Pająk <[email protected]>
1 parent 1c8a001 commit a80077a

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

.github/workflows/links-fail-fast.yml

+12
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,22 @@ on:
77
jobs:
88
check-links:
99
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
1012
steps:
1113
- uses: actions/checkout@v4
1214

15+
- name: Restore lychee cache
16+
uses: actions/cache@v4
17+
with:
18+
path: .lycheecache
19+
key: cache-lychee-${{ github.sha }}
20+
restore-keys: cache-lychee-
21+
1322
- name: Link Checker
1423
uses: lycheeverse/[email protected]
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1526
with:
1627
fail: true
28+
args: --max-concurrency 5 --cache --max-cache-age 1d .

.github/workflows/links.yml

+14
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,27 @@ on:
1010
jobs:
1111
check-links:
1212
runs-on: ubuntu-latest
13+
permissions:
14+
contents: read
1315
steps:
1416
- name: Checkout Repo
1517
uses: actions/checkout@v4
1618

19+
20+
- name: Restore lychee cache
21+
uses: actions/cache@v4
22+
with:
23+
path: .lycheecache
24+
key: cache-lychee-${{ github.sha }}
25+
restore-keys: cache-lychee-
26+
1727
- name: Link Checker
1828
id: lychee
1929
uses: lycheeverse/[email protected]
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
with:
33+
args: --max-concurrency 1 --cache --max-cache-age 1d .
2034

2135
- name: Create Issue From File
2236
if: steps.lychee.outputs.exit_code != 0

0 commit comments

Comments
 (0)