-
-
Notifications
You must be signed in to change notification settings - Fork 112
35 lines (29 loc) · 866 Bytes
/
linkcheck.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
name: linkcheck
on:
push:
branches: [ '*' ]
pull_request:
branches: [ '*' ]
jobs:
check:
strategy:
fail-fast: false
matrix:
file: ['README.md', 'pages/UNLISTED.md']
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v3
- name: Set up Ruby 2.6
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.6'
- name: Run awesome_bot
run: |
set +e # Don't cancel step when the bot fails
gem install awesome_bot
FILE=${{ matrix.file }}
FILE_SLUG="${FILE//\//-}"
awesome_bot -f "$FILE" -a 429 --allow-dupe --base-url https://github.com/timschneeb/awesome-shizuku/blob/master/
echo "## $FILE" >> $$GITHUB_STEP_SUMMARY
cat ab-results-${FILE_SLUG}-markdown-table.json | jq .message -r >> $GITHUB_STEP_SUMMARY