File tree 1 file changed +14
-16
lines changed
1 file changed +14
-16
lines changed Original file line number Diff line number Diff line change @@ -10,39 +10,37 @@ jobs:
10
10
linkChecker :
11
11
runs-on : ubuntu-latest
12
12
permissions :
13
- issues : write
13
+ issues : write # required for peter-evans/create-issue-from-file
14
14
steps :
15
- - uses : actions/checkout@v4
15
+ - name : Checkout gh-pages branch
16
+ uses : actions/checkout@v4
17
+ with :
18
+ ref : gh-pages
16
19
17
20
- name : Set up Ruby
18
- uses : ruby /setup-ruby@v1
21
+ uses : actions /setup-ruby@v1
19
22
with :
20
- ruby-version : ' 3.1'
21
- bundler-cache : true
22
-
23
- - name : Fix Bundler Platform Compatibility
24
- run : bundle lock --add-platform x86_64-linux
23
+ ruby-version : 3.0
25
24
26
- - name : Install Jekyll and dependencies
27
- run : bundle install
25
+ - name : Install Jekyll and Bundler
26
+ run : |
27
+ gem install jekyll bundler
28
+ bundle install
28
29
29
- - name : Build Site
30
+ - name : Build Jekyll site
30
31
run : bundle exec jekyll build
31
32
32
- - name : Debug file listing
33
- run : ls -R _site/
34
-
35
33
- name : Link Checker
36
34
id : lychee
37
35
uses : lycheeverse/lychee-action@v2
38
36
with :
39
37
fail : false
40
- args : --no-progress --verbose ' _site/**/*' --fail-if-empty false
38
+ directory : _site
41
39
42
40
- name : Create Issue From File
43
41
if : steps.lychee.outputs.exit_code != 0
44
42
uses : peter-evans/create-issue-from-file@v5
45
43
with :
46
44
title : Link Checker Report
47
45
content-filepath : ./lychee/out.md
48
- labels : report, automated issue
46
+ labels : report, automated issue
You can’t perform that action at this time.
0 commit comments