diff --git a/action.yml b/action.yml index 58ef703..82057c8 100644 --- a/action.yml +++ b/action.yml @@ -73,17 +73,10 @@ runs: $( echo "$ACTIONS_RUNTIME_TOKEN" | sed 's/.*\.\(.*\)\..*/\1/' | base64 -d 2>/dev/null | sed 's/.*Actions.Results:\([^:]\+\):\([^:" ]\+\).*/\1 \2/' ) EOF - RESPONSE="$( echo wget -O - \ - --header 'Content-Type:application/json' \ - --header "Authorization: Bearer $GITHUB_TOKEN" \ - --post-data "$( printf '{"version":4, "name":"%s", "workflow_run_backend_id":"%s", "workflow_job_run_backend_id":"%s"}' "${{ inputs.name }}" "$WORKFLOW_RUN_BACKEND_ID" "$WORKFLOW_JOB_RUN_BACKEND_ID" )" \ - "$GITHUB_SERVER_URL"/twirp/github.actions.results.api.v1.ArtifactService/CreateArtifact - )" - echo "$RESPONSE" | base64 - # Request an upload URL RESPONSE="$( wget -O - \ --header 'Content-Type:application/json' \ + --header 'User-Agent: @actions/artifact-2.1.9' \ --header "Authorization: Bearer $GITHUB_TOKEN" \ --post-data "$( printf '{"version":4, "name":"%s", "workflow_run_backend_id":"%s", "workflow_job_run_backend_id":"%s"}' "${{ inputs.name }}" "$WORKFLOW_RUN_BACKEND_ID" "$WORKFLOW_JOB_RUN_BACKEND_ID" )" \ "$GITHUB_SERVER_URL"/twirp/github.actions.results.api.v1.ArtifactService/CreateArtifact