File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Links
2
+
3
+ on :
4
+ # This workflow requires pull_request and won't work with pull_request_target
5
+ # due to github permissions
6
+ pull_request :
7
+ types :
8
+ - opened
9
+ - reopened
10
+ - synchronize
11
+ - closed
12
+ # Uncomment the following lines to have the cronjob running daily
13
+ # repository_dispatch:
14
+ # workflow_dispatch:
15
+ # schedule:
16
+ # - cron: "00 18 * * *"
17
+
18
+ jobs :
19
+ linkChecker :
20
+ runs-on : ubuntu-latest
21
+ permissions :
22
+ issues : write # required for peter-evans/create-issue-from-file
23
+ steps :
24
+ - uses : actions/checkout@v4
25
+
26
+ - name : Link Checker
27
+ id : lychee
28
+ uses : lycheeverse/lychee-action@v2
29
+ with :
30
+ fail : true
31
+
32
+ # Uncomment this if you want issues to be created for every dead link
33
+ # - name: Create Issue From File
34
+ # if: steps.lychee.outputs.exit_code != 0
35
+ # uses: peter-evans/create-issue-from-file@v5
36
+ # with:
37
+ # title: Link Checker Report
38
+ # content-filepath: ./lychee/out.md
39
+ # labels: report, automated issue
You can’t perform that action at this time.
0 commit comments