File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change 19
19
- name : Get Changed Files
20
20
id : changed-files
21
21
uses : tj-actions/changed-files@d6e91a2266cdb9d62096cebf1e8546899c6aa18f # v45.0.6
22
- with :
23
- files : |
24
- **/*.md
25
- **/*.html
26
- **/*.rst
27
- **/*.txt
28
22
29
23
- name : Check for Skip Label
30
24
id : skip-label
39
33
return labels.data.some(label => label.name === 'skip-link-check');
40
34
41
35
- name : Check Links
42
- if : steps.skip-label.outputs.result == 'false' && steps.changed-files.outputs.any_changed == 'true'
36
+ if : steps.skip-label.outputs.result == 'false'
43
37
uses : lycheeverse/lychee-action@v1
44
38
with :
45
39
args : --accept=200,403,429 --base . --verbose --no-progress ${{ steps.changed-files.outputs.all_changed_files }}
49
43
- name : Skip Message
50
44
if : steps.skip-label.outputs.result == 'true'
51
45
run : echo "Link check was skipped due to the presence of the 'skip-link-check' label."
52
-
53
- - name : No Files to Check
54
- if : steps.skip-label.outputs.result == 'false' && steps.changed-files.outputs.any_changed == 'false'
55
- run : echo "No relevant files were changed in this PR that require link checking."
56
46
57
47
- name : Suggestions
58
48
if : failure()
You can’t perform that action at this time.
0 commit comments