File tree 2 files changed +43
-0
lines changed
2 files changed +43
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Broken Links
2
+
3
+ on :
4
+ repository_dispatch :
5
+ workflow_dispatch :
6
+ schedule :
7
+ - cron : " 00 18 * * *"
8
+
9
+ jobs :
10
+ build_and_check :
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - uses : actions/checkout@v3
14
+ - uses : actions/setup-node@v3
15
+ with :
16
+ node-version : 18.x
17
+ cache : yarn
18
+
19
+ - name : Install and build
20
+ run : |
21
+ yarn install --frozen-lockfile
22
+ yarn build
23
+
24
+ - name : Link Checker
25
+ id : lychee
26
+ uses : lycheeverse/lychee-action@v1.7.0
27
+ env :
28
+ GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
29
+ with :
30
+ args : --verbose --exclude-path ./node_modules/ "./**/*.js" "./**/*.ts" "./**/*.html" "./**/*.json" "./**/*.md"
31
+
32
+ - name : Create Issue From File
33
+ if : env.lychee_exit_code != 0
34
+ uses : peter-evans/create-issue-from-file@v4
35
+ with :
36
+ title : Link Checker Report
37
+ content-filepath : ./lychee/out.md
38
+ labels : report, automated issue
Original file line number Diff line number Diff line change
1
+ # Ignore all files
2
+ file://.*
3
+
4
+ # Twitter its API does not like us
5
+ https://twitter.com/*
You can’t perform that action at this time.
0 commit comments