-
Notifications
You must be signed in to change notification settings - Fork 1k
36 lines (27 loc) · 859 Bytes
/
links.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
name: Links
on:
schedule:
# Run at 00:00 UTC every Sunday
- cron: '0 0 * * */7'
env:
FORCE_COLOR: 1
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Find markdown files
shell: bash
run: |
echo 'FILES_TO_CHECK<<EOF' >> $GITHUB_ENV
# $GITHUB_WORKSPACE is where our files live
# Ignore dirs and only include markdown files
files_to_check=$(find $GITHUB_WORKSPACE -type f \
-not -path '*/\.git/*' -not -path '*/\.github/*' \
-name "*.md")
echo $files_to_check >> $GITHUB_ENV
echo 'EOF' >> $GITHUB_ENV
- name: Validate that links are up
uses: simeg/urlsup-action@v1.0.0
with:
args: ${{ env.FILES_TO_CHECK }} --threads 10 --allow 429 --white-list http://localhost