File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Check links
1+ name : Check Links
2+
23on :
34 pull_request :
45
56jobs :
6- junit :
7+ linkChecker :
78 runs-on : ubuntu-latest
8-
99 steps :
10- - uses : actions/checkout@v4
11- with :
12- fetch-depth : 0
13-
14- - name : Get changed files
15- id : changed-files
16- uses : tj-actions/changed-files@v44
17- with :
18- files : |
19- **/*.md
20- **/*.html
21- **/*.json
22- separator : " "
23-
24- - name : Check links in changed files
25- id : lychee
26- if : steps.changed-files.outputs.any_changed == 'true'
27- uses : lycheeverse/lychee-action@v2
28- with :
29- fail : false
30- format : " json"
31- output : " results.json"
32- args : |
33- --verbose
34- ${{ steps.changed-files.outputs.all_changed_files }}
35-
36- - name : Create empty results if no files changed
37- if : steps.changed-files.outputs.any_changed == 'false'
38- run : echo '[]' > results.json
39-
40- - name : Publish link check report
41- uses : mikepenz/action-junit-report@v6
10+ - uses : actions/checkout@v3
11+ - name : Link Checker
12+ uses : lycheeverse/lychee-action@v1.5.1
4213 with :
43- report_paths : " results.json"
44- annotate_only : true
45- fail_on_failure : true
14+ args : --config ./.github/config/lychee.toml README.md
15+ format : markdown
16+ output : ./lychee/out.md
17+ fail : true
18+ env :
19+ GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
You can’t perform that action at this time.
0 commit comments