From 9075262e0ed8481e3c957ac472e9440be4af7b5c 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..11c39b6 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 - \