add check-links workflow
This commit is contained in:
parent
292f762328
commit
23cfdcb8fc
1 changed files with 26 additions and 0 deletions
26
.github/workflows/check-links.yml
vendored
Normal file
26
.github/workflows/check-links.yml
vendored
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
name: Check Links
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: '*'
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
schedule:
|
||||
# Runs every day at 9 am
|
||||
- cron: '0 9 * * *'
|
||||
|
||||
jobs:
|
||||
awesome_bot:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ruby/setup-ruby@v1
|
||||
with:
|
||||
ruby-version: '2.6'
|
||||
- name: Install awesome_bot
|
||||
run: gem install awesome_bot
|
||||
- name: Load allow list to an env var to call in the next step
|
||||
run: echo "BOT_ALLOW_LIST=$(cat .github/workflows/allow-list.txt)" >> $GITHUB_ENV
|
||||
- name: Run awesome_bot
|
||||
run: awesome_bot README.md --allow-redirect --allow-dupe --set-timeout 60 --skip-save-results --allow 429 --white-list ${{ env.BOT_ALLOW_LIST }}
|
||||
Loading…
Reference in a new issue