Skip to content

Commit 3fb7023

Browse files
Update .github/workflows/traffic-reporting.yml
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 77857fe commit 3fb7023

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/traffic-reporting.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@ jobs:
5959
run: |
6060
echo "📤 Sending traffic data to reporting endpoint..."
6161
62+
# Validate that REPORTING_URL is set
63+
if [ -z "${REPORTING_URL}" ]; then
64+
echo "❌ Error: REPORTING_URL environment variable is not set. Please configure vars.REPORTING_POST_URL."
65+
exit 1
66+
fi
67+
6268
# Send POST request with API key header, reading file directly
6369
HTTP_STATUS=$(curl -s -o /dev/null -w "%{http_code}" \
6470
-X POST \

0 commit comments

Comments
 (0)