From 4327c6ac22abc5bf23f4cd5a8cd322457a9ec71f Mon Sep 17 00:00:00 2001 From: ange Date: Sat, 1 Feb 2025 12:14:07 +0000 Subject: [PATCH] fix: repo name --- entrypoint.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 31d3af4..e220c8b 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -48,9 +48,8 @@ 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" \ - -H "Accept: application/vnd.github.v3+json" \ -d "{\"name\": \"$INPUT_NAME\", \"size_in_bytes\": $ARTIFACT_SIZE$RETENTION}" \ - "https://api.github.com/repos/OWNER/REPO/actions/runs/$WORKFLOWRUNID/artifacts") + "https://api.github.com/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}//')