diff options
Diffstat (limited to 'scripts.gh-upload-artifact.sh')
-rwxr-xr-x | scripts.gh-upload-artifact.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts.gh-upload-artifact.sh b/scripts.gh-upload-artifact.sh index 6747c52aea92..df01b07b152f 100755 --- a/scripts.gh-upload-artifact.sh +++ b/scripts.gh-upload-artifact.sh @@ -137,7 +137,12 @@ main() { -H "$GH_AUTH" \ -H "Content-Type: $(file -b --mime-type $artifact)" \ --data-binary @"$artifact" \ + -o "$GH_RESPONSE" \ $upload_uri + + (( $? > 0 )) \ + && die 1 "$(cat <(printf "Failed to upload $filename to $repo:\n") $GH_RESPONSE)" \ + || jq '.' "$GH_RESPONSE" fi } |