Skip to content

Commit 1e24ca6

Browse files
committed
new checker
1 parent 3972079 commit 1e24ca6

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.github/workflows/check-links.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,20 @@ jobs:
2222
with:
2323
ruby-version: 2.6 # Not needed with a .ruby-version file
2424
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
25-
- name: Build jekyll website with drafts
25+
- name: Build jekyll website with
2626
run: bundle exec jekyll build
2727
- name: Check for broken links
2828
run: |
29-
bundle exec htmlproofer --log-level :debug ./_site/utils/env/index.html &> links.log
29+
yarn run hyperlink ./_site/index.html --canonicalroot https://segment.com/docs -i -r --skip 0.0.0.0 | yarn run tap-spot > output.md
3030
continue-on-error: true
3131
- name: Archive log links
3232
uses: actions/upload-artifact@v1
3333
with:
3434
name: links-check.log
35-
path: links.log
36-
- name: Build jekyll website
37-
run: bundle exec jekyll build
38-
- name: Archive log links
39-
uses: actions/upload-artifact@v1
35+
path: output.md
36+
- name: Create Issue From File
37+
uses: peter-evans/create-issue-from-file@v2
4038
with:
41-
name: links-check.log
42-
path: links.log
39+
title: Link Checker Report
40+
content-filepath: output.md
41+
labels: report, automated issue

0 commit comments

Comments
 (0)