From f8ca274e078b5c813ccc6d9e823b08aabeff2eb1 Mon Sep 17 00:00:00 2001 From: Chl Date: Sat, 31 Aug 2024 02:18:51 +0200 Subject: [PATCH] Github doesn't like the &comp=block --- action.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 8b815d1..490a6a0 100644 --- a/action.yml +++ b/action.yml @@ -100,12 +100,15 @@ runs: # (note 2: if it fails here, it probably means you are using the busybox # variant of wget which can't (as of 2024-08-26) use the PUT method. # Install the full one beforehand : apt install wget / pkg add wget / ...) + if [ "$GITHUB_SERVER_URL" != "https://github.com" ]; then + $SIGNED_UPLOAD_URL="$SIGNED_UPLOAD_URL&comp=block" + fi wget -O /dev/null \ --method PUT \ --body-file "$MYUPLOAD" \ --header "x-ms-blob-content-type: zip" \ --header "x-ms-blob-type: BlockBlob" \ - "$SIGNED_UPLOAD_URL&comp=block" + "$SIGNED_UPLOAD_URL" # Finalize the artifact RESPONSE="$( wget -O - \