Skip to content

Commit

Permalink
consume latest @actions/artifact from toolkit
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Herley committed Nov 21, 2023
1 parent 59ef34a commit fa39c94
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
};
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit fa39c94

Please sign in to comment.