-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (31 loc) · 1.3 KB
/
link-checker.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
name: Link checker
on:
push:
branches:
- '**'
schedule:
# Every Monday at 2:00 AM.
- cron: '0 2 * * MON'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout the repo
uses: actions/checkout@master
with:
fetch-depth: 1
- name: Report broken links
uses: urlstechie/urlchecker-action@master
with:
# A comma-separated list of file types to cover in the URL checks
file_types: .html
# The timeout seconds to provide to requests, defaults to 5 seconds
timeout: 30
# How many times to retry a failed request (each is logged, defaults to 1)
retry_count: 1
# Choose whether to include files with no URLs in the output
print_all: false
# A comma separated patterns to exclude during URL checks
exclude_patterns: http://www.w3.org,http://schema.org/,http://purl.org,http://ogp.me,http://rdfs.org,http://xmlns.com,http://drupal.org,https://drupal.org,https://formsubmit.co,https://www.facebook.com,https://brick.a.ssl.fastly.net,https://ajax.googleapis.com,https://titanium.org
# A comma separated list of file patterns (direct paths work as well) to exclude
exclude_files: /github/workspace/_reports,/github/workspace/_scripts