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 5cc5163 commit b84b3ae
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
awesome_bot README.md --allow-redirect \
--request-delay 1 \
--set-timeout 10 \
--white-list medium.com
--white-list medium.com,arxiv.org
- name: Check Medium URLs
run: |
medium_urls=$(grep -Eo 'https?://[^[:space:]]+medium.com[^[:space:]]*' README.md)
Expand All @@ -29,3 +29,11 @@ jobs:
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
echo "$arxiv_urls" | awesome_bot --allow-redirect --request-delay 120 --set-timeout 150 -
else
echo "No arXiv URLs found"
fi

0 comments on commit b84b3ae

Please sign in to comment.