ci: Change curl command to fail on error

cc @Constrat
This commit is contained in:
AnnAngela
2025-11-18 22:31:57 +08:00
committed by GitHub
parent 0f1ff2a36f
commit d4a6fb3fa2

View File

@@ -109,7 +109,7 @@ jobs:
for param in "${parameters[@]}"; do
{
if curl -s -o "stages_${param}.json" "${baseUrl}${param}"; then
if curl -f -s -o "stages_${param}.json" "${baseUrl}${param}"; then
echo "Successfully fetched data for ${param}"
else
echo "Failed to fetch data for ${param}" >&2