File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed
Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Markdown Link Check
2+
3+ on :
4+ pull_request :
5+ paths :
6+ - ' **/*.md'
7+ workflow_dispatch :
8+
9+ jobs :
10+ link-check :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - name : Checkout Repository
14+ uses : actions/checkout@v4
15+
16+ - name : Get Changed Markdown Files
17+ id : changed-files
18+ uses : tj-actions/changed-files@v44
19+ with :
20+ files : |
21+ **/*.md
22+
23+ - name : Run Link Checker
24+ if : steps.changed-files.outputs.any_changed == 'true'
25+ uses : lycheeverse/lychee-action@v1.9.0
26+ with :
27+ # Configuration is defined here directly in YAML (no JSON file needed)
28+ # --exclude-loopback: ignores localhost/127.0.0.1
29+ # --verbose: shows details in the logs
30+ args : --verbose --no-progress --exclude-loopback ${{ steps.changed-files.outputs.all_changed_files }}
31+ fail : true
You can’t perform that action at this time.
0 commit comments