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 90b3df7 commit eaefda7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,22 @@ jobs:
- name: Check non-Medium/arXiv URLs
run: |
awesome_bot README.md --allow-redirect \
--request-delay 2 \
--set-timeout 10 \
--request-delay 0.2 \
--set-timeout 2 \
--white-list medium.com,arxiv.org
- name: Check Medium URLs
run: |
medium_urls=$(grep -Eo 'https?://[^[:space:]]+medium.com[^[:space:]]*' README.md)
if [ ! -z "$medium_urls" ]; then
awesome_bot $medium_urls --allow-redirect --request-delay 5
echo "$medium_urls" | awesome_bot --allow-redirect --request-delay 5 --set-timeout 10 -
else
echo "No Medium URLs found"
fi
- name: Check arXiv URLs
run: |
arxiv_urls=$(grep -Eo 'https?://arxiv.org[^[:space:]]*' README.md)
if [ ! -z "$arxiv_urls" ]; then
awesome_bot $arxiv_urls --allow-redirect --request-delay 15 --set-timeout 20
awesome_bot $arxiv_urls --allow-redirect --request-delay 30 --set-timeout 40
else
echo "No arXiv URLs found"
fi

0 comments on commit eaefda7

Please sign in to comment.