This commit is contained in:
ange 2025-02-01 12:15:55 +00:00
parent 4327c6ac22
commit 4f4191df35
Signed by: ange
GPG Key ID: 9E0C4157BB7BEB1D

View File

@ -49,7 +49,7 @@ ARTIFACT_SIZE="$(stat -c '%s' "$INPUT_PATH")"
# Step 1: Create the artifact
CREATE_ARTIFACT_RESPONSE=$(curl -s -X POST -H "Authorization: token $ACTIONS_RUNTIME_TOKEN" \
-d "{\"name\": \"$INPUT_NAME\", \"size_in_bytes\": $ARTIFACT_SIZE$RETENTION}" \
"https://api.github.com/repos/$GITHUB_REPOSITORY/actions/runs/$WORKFLOWRUNID/artifacts")
"https://$GITHUB_SERVER_URL/api/repos/$GITHUB_REPOSITORY/actions/runs/$WORKFLOWRUNID/artifacts")
# Extract the upload URL from the response
UPLOAD_URL=$(echo "$CREATE_ARTIFACT_RESPONSE" | jq -r '.upload_url' | sed 's/{?name,label}//')