Skip to content

Commit

Permalink
Update check-urls1.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlichtenstein authored Sep 11, 2024
1 parent fdc9e12 commit ef81b34
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/check-urls1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,16 @@ jobs:
# Loop through each URL and make a GET request using curl
for url in "${urls[@]}"; do
echo "Checking URL: $url"
# Make the GET request and capture the HTTP status code and any potential errors
status_code=$(curl -o /dev/null -s -w "%{http_code}" --connect-timeout 5 --max-time 10 "$url")
# Capture the curl exit code
curl_exit_code=$?
echo "Curl Exit Code: $curl_exit_code"
# Handle curl exit codes
case $curl_exit_code in
0)
Expand Down

0 comments on commit ef81b34

Please sign in to comment.