From fa39c94ed2fb3448e5e6789776c205e43dbc3af5 Mon Sep 17 00:00:00 2001 From: Rob Herley Date: Mon, 20 Nov 2023 20:56:30 -0500 Subject: [PATCH] consume latest @actions/artifact from toolkit --- dist/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/index.js b/dist/index.js index 32bce2a..0906d58 100644 --- a/dist/index.js +++ b/dist/index.js @@ -5032,8 +5032,8 @@ class ArtifactHttpClient { // JSON generated client. request(service, method, contentType, data) { return __awaiter(this, void 0, void 0, function* () { - const url = `${this.baseUrl}/twirp/${service}/${method}`; - (0, core_1.debug)(`Requesting ${url}`); + const url = new URL(`/twirp/${service}/${method}`, this.baseUrl).href; + (0, core_1.debug)(`Requesting: ${url}`); const headers = { 'Content-Type': contentType }; @@ -5155,7 +5155,7 @@ function getResultsServiceUrl() { if (!resultsUrl) { throw new Error('Unable to get the ACTIONS_RESULTS_URL env variable'); } - return resultsUrl; + return new URL(resultsUrl).origin; } exports.getResultsServiceUrl = getResultsServiceUrl; function isGhes() {