@@ -17,29 +17,29 @@ jobs:
17
17
runs-on : ubuntu-latest
18
18
strategy :
19
19
fail-fast : false
20
- # steps:
21
- # - uses: actions/checkout@v2
22
- # - name: Ruby
23
- # uses: ruby/setup-ruby@v1
24
- # with:
25
- # ruby-version: 2.6 # Not needed with a .ruby-version file
26
- # bundler-cache: true # runs 'bundle install' and caches installed gems automatically
27
- # - name: Yarn install
28
- # run: yarn install
29
- # - name: Build jekyll website with
30
- # run: bundle exec jekyll build
31
- # - name: Check for broken links
32
- # run: |
33
- # yarn run hyperlink ./_site/index.html --canonicalroot https://segment.com/docs -i -r --skip 0.0.0.0 | yarn run tap-spot > output.md
34
- # continue-on-error: true
35
- # - name: Archive log links
36
- # uses: actions/upload-artifact@v1
37
- # with:
38
- # name: links-check.log
39
- # path: output .md
40
- # - name: Create Issue From File
41
- # uses: peter-evans/create-issue-from-file@v2
42
- # with:
43
- # title: Link Checker Report
44
- # content-filepath: output .md
45
- # labels: report, automated issue
20
+ steps :
21
+ - uses : actions/checkout@v2
22
+ - name : Ruby
23
+ uses : ruby/setup-ruby@v1
24
+ with :
25
+ ruby-version : 2.6 # Not needed with a .ruby-version file
26
+ bundler-cache : true # runs 'bundle install' and caches installed gems automatically
27
+ - name : Yarn install
28
+ run : yarn install
29
+ - name : Build jekyll website with
30
+ run : bundle exec jekyll build
31
+ - name : Link Checker
32
+ uses : lycheeverse/[email protected]
33
+ with :
34
+ args : --verbose --no-progress **/*.html -a 429 -c ./lychee.toml -o lychee-out.txt
35
+ env :
36
+ GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
37
+ - name : " exclude non-400 errors "
38
+ run : |
39
+ cat ./lychee/out.md | grep -v "error sending request" > ./lychee/out .md
40
+ - name : Create Issue From File
41
+ uses : peter-evans/create-issue-from-file@v3
42
+ with :
43
+ title : Link Checker Report
44
+ content-filepath : ./lychee/out .md
45
+ labels : report, automated issue
0 commit comments