Skip to content

Commit 028831d

Browse files
committed
new checker
1 parent 423f072 commit 028831d

File tree

1 file changed

+23
-5
lines changed

1 file changed

+23
-5
lines changed

.github/workflows/check-links.yml

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,26 @@ jobs:
1616
strategy:
1717
fail-fast: false
1818
steps:
19-
- name: Check links with linkcheck
20-
uses: filiph/[email protected]+1
21-
with:
22-
arguments: https://deploy-preview-1839--segment-docs.netlify.app/utils/env
23-
19+
- uses: actions/checkout@v2
20+
- name: Ruby
21+
uses: ruby/setup-ruby@v1
22+
with:
23+
ruby-version: 2.6 # Not needed with a .ruby-version file
24+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
25+
- name: Build jekyll website with drafts
26+
run: bundle exec jekyll build
27+
- name: Check for broken links
28+
run: |
29+
bundle exec htmlproofer --log-level :debug ./_site &> links.log
30+
continue-on-error: true
31+
- name: Archive log links
32+
uses: actions/upload-artifact@v1
33+
with:
34+
name: links-check.log
35+
path: links.log- name: Build jekyll website
36+
run: bundle exec jekyll build
37+
- name: Archive log links
38+
uses: actions/upload-artifact@v1
39+
with:
40+
name: links-check.log
41+
path: links.log

0 commit comments

Comments
 (0)