-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
urlchecker-jekyll.yml
46 lines (37 loc) · 1.24 KB
/
urlchecker-jekyll.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Check URLs
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-ruby@v1
with:
ruby-version: '2.7'
- uses: actions/cache@v1
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile') }}
restore-keys: |
${{ runner.os }}-gems-
- run: |
gem install bundler jekyll
bundle check || bundle install
bundle exec jekyll build
- name: urls-checker
uses: urlstechie/urlchecker-action@master
with:
# subfolder with files to test
subfolder: _site
# A comma-separated list of file types to cover in the URL checks
file_types: .md,.py,.rst
# Choose whether to include file with no URLs in the prints.
print_all: false
# The timeout seconds to provide to requests, defaults to 5 seconds
timeout: 5
# How many times to retry a failed request (each is logged, defaults to 1)
retry_count: 3
# A comma separated patterns to exclude during URL checks
exclude_patterns: twitter.com,turing.ac.uk,linkedin.com
# choose if the force pass or not
force_pass : false