mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-16 17:57:01 +08:00
ci: Change curl command to fail on error
cc @Constrat
This commit is contained in:
2
.github/workflows/res-update-game.yml
vendored
2
.github/workflows/res-update-game.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user