Skip to content

Commit

Permalink
Clean up code.
Browse files Browse the repository at this point in the history
Signed-off-by: ZePan110 <[email protected]>
  • Loading branch information
ZePan110 committed Sep 20, 2024
1 parent 9d9959f commit 7e2f164
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/pr-path-detection.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,6 @@ jobs:
for link in "${urls_line[@]}"; do
url=$(echo "$link"|cut -d '(' -f2 | cut -d ')' -f1|sed 's/\.git$//')
path=$(echo "$link"|cut -d':' -f1 | cut -d'/' -f2-)
# do_retry=$(curl -s -o /dev/null -w "%{http_code}" "$url")
# if [ "$do_retry" -eq 200 ]; then
# echo "$url Retry successful"
# else
# echo "Invalid link from ${{github.workspace}}/$path: $url status code: $do_retry"
# fail="TRUE"
# fi
attempt_num=1
while [ $attempt_num -le 5 ]; do
do_retry=$(curl -s -o /dev/null -w "%{http_code}" "$url")
Expand Down

0 comments on commit 7e2f164

Please sign in to comment.