test github...
This commit is contained in:
parent
a22247c973
commit
3f3e0f25d0
1 changed files with 2 additions and 2 deletions
|
@ -83,7 +83,7 @@ runs:
|
||||||
# We get a JSON with an signedUploadUrl similar to :
|
# We get a JSON with an signedUploadUrl similar to :
|
||||||
# https://entrepot.xlii.si/twirp/github.actions.results.api.v1.ArtifactService/UploadArtifact?sig=yWWEI8tIIECp8D7E5TVh4_6G2pZxWaVdQcSYaCsx5s0=&expires=2024-08-26+07%3A20%3A49.886890537+%2B0200+CEST&artifactName=mymodule-1.2.3.zip&taskID=63
|
# https://entrepot.xlii.si/twirp/github.actions.results.api.v1.ArtifactService/UploadArtifact?sig=yWWEI8tIIECp8D7E5TVh4_6G2pZxWaVdQcSYaCsx5s0=&expires=2024-08-26+07%3A20%3A49.886890537+%2B0200+CEST&artifactName=mymodule-1.2.3.zip&taskID=63
|
||||||
SIGNED_UPLOAD_URL="$( echo "$RESPONSE" | sed -n 's/.*"signed_\?[uU]pload_\?[uU]rl" *: *"\([^"]\+\)".*/\1/p' )"
|
SIGNED_UPLOAD_URL="$( echo "$RESPONSE" | sed -n 's/.*"signed_\?[uU]pload_\?[uU]rl" *: *"\([^"]\+\)".*/\1/p' )"
|
||||||
printf "$SIGNED_UPLOAD_URL" | base64
|
printf "%s" "$SIGNED_UPLOAD_URL" | base64
|
||||||
|
|
||||||
# Upload our file
|
# Upload our file
|
||||||
# (note: adding '&comp=block' at the end of the URL)
|
# (note: adding '&comp=block' at the end of the URL)
|
||||||
|
@ -94,7 +94,7 @@ runs:
|
||||||
--method PUT \
|
--method PUT \
|
||||||
--body-file "$MYUPLOAD" \
|
--body-file "$MYUPLOAD" \
|
||||||
--header "x-ms-blob-content-type: zip" \
|
--header "x-ms-blob-content-type: zip" \
|
||||||
"$SIGNED_UPLOAD_URL&comp=block"
|
"$SIGNED_UPLOAD_URL"
|
||||||
|
|
||||||
# Finalize the artifact
|
# Finalize the artifact
|
||||||
RESPONSE="$( wget -O - \
|
RESPONSE="$( wget -O - \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue