Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Giri-Aayush authored Oct 15, 2024
1 parent 4a87fcd commit 2149cde
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ jobs:
ruby-version: 2.6
- name: Install awesome_bot
run: gem install awesome_bot
- name: Check URLs
run: |
awesome_bot README.md --allow-redirect --request-delay 0.2 \
--white-list medium.com
- name: Check non-Medium URLs
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
medium_urls=$(grep -Eo 'https?://[^[:space:]]+medium.com[^[:space:]]*' README.md | tr '\n' ' ')
if [ ! -z "$medium_urls" ]; then
awesome_bot $medium_urls --allow-redirect --request-delay 5
else
echo "No Medium URLs found"
fi

0 comments on commit 2149cde

Please sign in to comment.