Skip to content

Commit 4e876b6

Browse files
Copilotcodemillmatt
andcommitted
Add timeout and retry configuration to curl command
Co-authored-by: codemillmatt <2053639+codemillmatt@users.noreply.github.com>
1 parent 7a8c487 commit 4e876b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/traffic-reporting.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
fi
7373
7474
# Send POST request with API key header, reading file directly
75-
HTTP_STATUS=$(curl -s -o /dev/null -w "%{http_code}" \
75+
HTTP_STATUS=$(curl -f --max-time 30 --retry 3 -s -o /dev/null -w "%{http_code}" \
7676
-X POST \
7777
-H "Content-Type: application/json" \
7878
-H "X-API-KEY: ${API_KEY}" \

0 commit comments

Comments
 (0)