This commit is contained in:
ange 2025-02-01 14:32:00 +00:00
parent 6c06ed0d6f
commit c26c81971e
Signed by: ange
GPG Key ID: 9E0C4157BB7BEB1D

View File

@ -1,6 +1,6 @@
#!/bin/bash -e
API="$GITHUB_SERVER_URL/api/actions_pipeline/_apis/pipelines/workflows/$GITHUB_RUN_ID/artifacts?api-version=6.0-preview"
API="$GITHUB_SERVER_URL/api/actions_pipeline/_apis/pipelines/workflows/$GITHUB_RUN_ID/artifacts"
CURL=(curl -H "Authorization: Bearer $ACTIONS_RUNTIME_TOKEN")
UPLOAD_URL="$("${CURL[@]}" --data "{\"Type\":\"actions_storage\",\"Name\":\"$INPUT_NAME\"}" "$API" | jq -r '.fileContainerResourceUrl')"