Skip to content

Commit 23cfdcb

Browse files
committed
add check-links workflow
1 parent 292f762 commit 23cfdcb

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/check-links.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Check Links
2+
3+
on:
4+
push:
5+
branches: '*'
6+
pull_request:
7+
branches:
8+
- master
9+
schedule:
10+
# Runs every day at 9 am
11+
- cron: '0 9 * * *'
12+
13+
jobs:
14+
awesome_bot:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v3
18+
- uses: ruby/setup-ruby@v1
19+
with:
20+
ruby-version: '2.6'
21+
- name: Install awesome_bot
22+
run: gem install awesome_bot
23+
- name: Load allow list to an env var to call in the next step
24+
run: echo "BOT_ALLOW_LIST=$(cat .github/workflows/allow-list.txt)" >> $GITHUB_ENV
25+
- name: Run awesome_bot
26+
run: awesome_bot README.md --allow-redirect --allow-dupe --set-timeout 60 --skip-save-results --allow 429 --white-list ${{ env.BOT_ALLOW_LIST }}

0 commit comments

Comments
 (0)