Skip to content

Commit f774393

Browse files
adamluibvolpato
andcommitted
Create check-links-on-push-pr.yml
Co-Authored-By: Bruno Volpato <3207647+bvolpato@users.noreply.github.com>
1 parent 17460ce commit f774393

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Check links on push + PR
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
workflow_dispatch:
11+
12+
permissions:
13+
contents: read
14+
15+
jobs:
16+
lychee:
17+
runs-on: ubuntu-24.04
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v6.0.2
21+
22+
- name: Check links
23+
uses: lycheeverse/lychee-action@v2.8.0
24+
with:
25+
# Check all MD files, ignore ok/redir/blocked/rate-limited, exclude commonly down domains
26+
args: >
27+
"*.md" "**/*.md"
28+
--verbose --no-progress
29+
--accept 200..299,300..399,403,429
30+
env:
31+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)