Skip to content

Commit 30192b9

Browse files
committed
Upgrade action
1 parent 0b71aa8 commit 30192b9

3 files changed

Lines changed: 58 additions & 124 deletions

File tree

.github/lychee.toml

Lines changed: 0 additions & 117 deletions
This file was deleted.

.github/workflows/link_check.yml

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,41 @@
1-
# This action checks for broken links
2-
name: Check Links
1+
name: Check Markdown Links
32

43
on:
54
push:
65
pull_request:
76

7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.ref }}
9+
cancel-in-progress: true
10+
11+
permissions:
12+
contents: read
13+
814
jobs:
9-
linkChecker:
15+
lychee:
16+
name: Link Checker
1017
runs-on: ubuntu-latest
1118
steps:
12-
- uses: actions/checkout@v4
19+
- name: Checkout Codebase
20+
uses: actions/checkout@v6
21+
with:
22+
persist-credentials: false
1323

1424
- name: 🔗 Check Links
15-
uses: lycheeverse/lychee-action@v1
25+
uses: lycheeverse/lychee-action@v2
1626
with:
1727
fail: true
18-
args: --config .github/lychee.toml './docs/*.md'
28+
args: >-
29+
--user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"
30+
--exclude "https?://(www\.)?(twitter\.com|x\.com|instagram\.com|linkedin\.com)"
31+
--threads 2
32+
--max-redirects 10
33+
--max-retries 2
34+
--max-concurrency 14
35+
--timeout 20
36+
--retry-wait-time 2
37+
--accept 200,429
38+
--method get
39+
"./docs/*.md"
1940
env:
20-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
41+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Live broken link check
2+
3+
on:
4+
push:
5+
schedule:
6+
- cron: '0 0 * * 0'
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
crawl_for_broken_links:
13+
runs-on: ubuntu-latest
14+
name: Broken-Links-Crawler
15+
16+
permissions:
17+
contents: read
18+
19+
steps:
20+
- name: Checking links
21+
uses: ScholliYT/Broken-Links-Crawler-Action@v3
22+
with:
23+
website_url: 'https://livewire-powergrid.com'
24+
exclude_url_prefix: 'mailto:,data:,https://twitter.com,https://x.com'
25+
verbose: 'true'
26+
max_retry_time: 30
27+
max_retries: 5
28+
max_depth: -1
29+
resolve_before_filtering: 'true'
30+
exclude_url_suffix: 'apple-touch-icon.png,logomark2x.png,favicon.ico,favicon-32x32.png,favicon-16x16.png,site.webmanifest'

0 commit comments

Comments
 (0)