This commit is contained in:
parent
c2571c9182
commit
03bef56c4d
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
)"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue