generated from jhudsl/OTTR_Template
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (27 loc) · 1023 Bytes
/
url-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
34
35
36
# Adapted from https://github.com/marketplace/actions/url-checker by Candace Savonen
# This github actions tests URLs in the Rmd files, README, and CONTRIBUTING.md
name: Check URLs
# This will be run upon PRs to main
on:
workflow_dispatch:
pull_request:
branches: [ main ]
# Here's the main action of checking URLs
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: URLs-checker
uses: urlstechie/urlchecker-action@master
with:
# Delete the cloned repository after running URLchecked (default is false)
cleanup: true
# A comma-separated list of file types to cover in the URL checks
file_types: .Rmd
# Choose whether to include file with no URLs in the prints.
print_all: false
# A comma separated links to exclude during URL checks
exclude_urls: https://jhudatascience.org/{Course_Name}}
# choose if the force pass or not
force_pass : true