diff --git a/action.yml b/action.yml index d0db751..f0265b7 100644 --- a/action.yml +++ b/action.yml @@ -78,7 +78,7 @@ runs: --header 'Content-Type:application/json' \ --header "Authorization: Bearer $ACTIONS_RUNTIME_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" )" \ - "https://results-receiver.actions.githubusercontent.com/twirp/github.actions.results.api.v1.ArtifactService/CreateArtifact" + "$ACTIONS_RESULTS_URL"twirp/github.actions.results.api.v1.ArtifactService/CreateArtifact" )" # We get a JSON with an signedUploadUrl similar to : # https://entrepot.xlii.si/twirp/github.actions.results.api.v1.ArtifactService/UploadArtifact?sig=yWWEI8tIIECp8D7E5TVh4_6G2pZxWaVdQcSYaCsx5s0=&expires=2024-08-26+07%3A20%3A49.886890537+%2B0200+CEST&artifactName=mymodule-1.2.3.zip&taskID=63 @@ -102,7 +102,7 @@ runs: --header 'Content-Type:application/json' \ --header "Authorization: Bearer $ACTIONS_RUNTIME_TOKEN" \ --post-data "$( printf '{"hash":"sha256:%s", "name":"%s", "size":"%d", "workflow_run_backend_id":"%s", "workflow_job_run_backend_id":"%s"}' "$( sha256sum $MYUPLOAD | sed 's/[[:space:]]\+.*//' )" "${{ inputs.name }}" "$( stat -c %s $MYUPLOAD )" "$WORKFLOW_RUN_BACKEND_ID" "$WORKFLOW_JOB_RUN_BACKEND_ID" )" \ - "$GITHUB_SERVER_URL"/twirp/github.actions.results.api.v1.ArtifactService/FinalizeArtifact + "$ACTIONS_RESULTS_URL"twirp/github.actions.results.api.v1.ArtifactService/FinalizeArtifact )" # Store the outputs