Skip to content

Commit

Permalink
Use lychee cache (#6161)
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
dmathieu and pellared authored Oct 2, 2024
1 parent 1c8a001 commit a80077a
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/links-fail-fast.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,22 @@ on:
jobs:
check-links:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4

- name: Restore lychee cache
uses: actions/cache@v4
with:
path: .lycheecache
key: cache-lychee-${{ github.sha }}
restore-keys: cache-lychee-

- name: Link Checker
uses: lycheeverse/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
fail: true
args: --max-concurrency 5 --cache --max-cache-age 1d .
14 changes: 14 additions & 0 deletions .github/workflows/links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,27 @@ on:
jobs:
check-links:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout Repo
uses: actions/checkout@v4


- name: Restore lychee cache
uses: actions/cache@v4
with:
path: .lycheecache
key: cache-lychee-${{ github.sha }}
restore-keys: cache-lychee-

- name: Link Checker
id: lychee
uses: lycheeverse/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: --max-concurrency 1 --cache --max-cache-age 1d .

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

0 comments on commit a80077a

Please sign in to comment.