Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update action versions in link checker workflow #2532

Merged
merged 16 commits into from
Aug 12, 2024
Merged
7 changes: 4 additions & 3 deletions .github/workflows/link-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ jobs:
link-checker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 2

- uses: ruby/setup-ruby@v1
with:
bundler-cache: true # runs 'bundle install' and caches installed gems automatically

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc

Expand Down Expand Up @@ -55,9 +55,10 @@ jobs:
run: npm run build

- name: Link Checker
uses: lycheeverse/lychee-action@v1.4.1
uses: lycheeverse/lychee-action@v1
with:
args: --github-token ${{secrets.GITHUB_TOKEN}} --max-concurrency 64 --verbose --no-progress './*.md' './_site/**/*.html'
fail: true
debug: true
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
6 changes: 3 additions & 3 deletions lychee.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ timeout = 20
# Accept 429 responses. They come from GitHub when you are sending too
# many requests and get throttled. They don't indicate a bad link.
# See https://github.com/lycheeverse/lychee/issues/367.
accept = "200,403,429,401"
accept = ["200", "403", "429", "401"]

# Proceed for server connections considered insecure (invalid TLS)
insecure = false
Expand Down Expand Up @@ -88,5 +88,5 @@ exclude_link_local = true
# Exclude loopback IP address range and localhost from checking
exclude_loopback = true

# Exclude all mail addresses from checking
exclude_mail = true
# Check mail addresses
include_mail = false
Loading