From b84b3ae647012647f0628c32a20ebf987c4766e2 Mon Sep 17 00:00:00 2001 From: Aayush Giri <101140354+Giri-Aayush@users.noreply.github.com> Date: Tue, 15 Oct 2024 16:57:33 +0530 Subject: [PATCH] Update ci.yml --- .github/workflows/ci.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dc13f9b..ab022ae 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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) @@ -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