From 4f4191df35acee49cf3a900a353620ce7584d595 Mon Sep 17 00:00:00 2001 From: ange Date: Sat, 1 Feb 2025 12:15:55 +0000 Subject: [PATCH] fix url --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index e220c8b..e5e710e 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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}//')