|
|
@ -5032,8 +5032,8 @@ class ArtifactHttpClient {
|
|
|
|
// JSON generated client.
|
|
|
|
// JSON generated client.
|
|
|
|
request(service, method, contentType, data) {
|
|
|
|
request(service, method, contentType, data) {
|
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
|
const url = `${this.baseUrl}/twirp/${service}/${method}`;
|
|
|
|
const url = new URL(`/twirp/${service}/${method}`, this.baseUrl).href;
|
|
|
|
(0, core_1.debug)(`Requesting ${url}`);
|
|
|
|
(0, core_1.debug)(`Requesting: ${url}`);
|
|
|
|
const headers = {
|
|
|
|
const headers = {
|
|
|
|
'Content-Type': contentType
|
|
|
|
'Content-Type': contentType
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -5155,7 +5155,7 @@ function getResultsServiceUrl() {
|
|
|
|
if (!resultsUrl) {
|
|
|
|
if (!resultsUrl) {
|
|
|
|
throw new Error('Unable to get the ACTIONS_RESULTS_URL env variable');
|
|
|
|
throw new Error('Unable to get the ACTIONS_RESULTS_URL env variable');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return resultsUrl;
|
|
|
|
return new URL(resultsUrl).origin;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
exports.getResultsServiceUrl = getResultsServiceUrl;
|
|
|
|
exports.getResultsServiceUrl = getResultsServiceUrl;
|
|
|
|
function isGhes() {
|
|
|
|
function isGhes() {
|
|
|
|