-
Notifications
You must be signed in to change notification settings - Fork 2
/
install
32 lines (26 loc) · 788 Bytes
/
install
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
#!/bin/bash
# Script used to automate the standard steps I take
# installing the action into a cloned repo
mkdir -p .github/workflows
touch .github/workflows/linkcheck.yml
cat << END >> .github/workflows/linkcheck.yml
name: Link-check
on:
schedule:
- cron: '0 1 * * *' # 1 am everyday
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run linksafe
uses: TechWiz-3/linksafe@main
with: # comma seperated lists
# use relative paths, if no dirs specified root dir is scanned
dirs: ".,./src,./src/subdir,./doc/website,./doc/more"
# set to false by default
verbose: true
whitelist_links: "https://xyz.xyz"
whitelist_files: "./doc/HACKING.md"
END