From 03bef56c4d29a1738840307a968ca841d4125371 Mon Sep 17 00:00:00 2001 From: Chl Date: Sat, 31 Aug 2024 01:16:44 +0200 Subject: [PATCH] retry... --- action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 10760d3..79df655 100644 --- a/action.yml +++ b/action.yml @@ -103,12 +103,12 @@ runs: --body-file "$MYUPLOAD" \ --header "x-ms-blob-content-type: zip" \ --header "x-ms-blob-type: BlockBlob" \ - "$SIGNED_UPLOAD_URL" + "$SIGNED_UPLOAD_URL&comp=block" # Finalize the artifact RESPONSE="$( wget -O - \ --header 'Content-Type:application/json' \ - --header "Authorization: Bearer $GITHUB_TOKEN" \ + --header "Authorization: Bearer $ACTIONS_RUNTIME_TOKEN" \ --post-data "$( printf '{"hash":"sha256:%s", "name":"%s", "size":"%d", "workflow_run_backend_id":"%s", "workflow_job_run_backend_id":"%s"}' "$( sha256sum $MYUPLOAD | sed 's/[[:space:]]\+.*//' )" "${{ inputs.name }}" "$( stat -c %s $MYUPLOAD )" "$WORKFLOW_RUN_BACKEND_ID" "$WORKFLOW_JOB_RUN_BACKEND_ID" )" \ "$ACTIONS_RESULTS_URL"/twirp/github.actions.results.api.v1.ArtifactService/FinalizeArtifact )"