Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
faster checking of most URLs while giving more time between requests to Medium URLs to avoid rate limiting issues.
  • Loading branch information
Giri-Aayush authored Oct 15, 2024
1 parent 413f956 commit 4a87fcd
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
name: Build

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
test:
runs-on: ubuntu-latest
Expand All @@ -18,4 +16,10 @@ jobs:
- name: Install awesome_bot
run: gem install awesome_bot
- name: Check URLs
run: awesome_bot README.md --allow-redirect --request-delay 1
run: |
awesome_bot README.md --allow-redirect --request-delay 0.2 \
--white-list medium.com
- name: Check Medium URLs
run: |
grep -Eo 'https?://[^[:space:]]+medium.com[^[:space:]]*' README.md | \
xargs -I {} awesome_bot {} --allow-redirect --request-delay 5

0 comments on commit 4a87fcd

Please sign in to comment.