forked from open-telemetry/opentelemetry-go
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (33 loc) · 914 Bytes
/
links-fail-fast.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
38
name: Links (Fail Fast)
on:
push:
branches:
- main
pull_request:
jobs:
check-links:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- name: Restore lychee cache
uses: actions/cache/restore@v4
id: cache-restore
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 --cache-exclude-status 300..=599 .
- name: Save lychee cache
if: always()
uses: actions/cache/save@v4
with:
path: .lycheecache
key: ${{ steps.cache-restore.outputs.cache-primary-key }}