diff --git a/dist/setup/index.js b/dist/setup/index.js index c4e8ec9ef..3b8701346 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -131520,9 +131520,9 @@ class SapMachineDistribution extends base_installer_1.JavaBase { return __awaiter(this, void 0, void 0, function* () { const platform = this.getPlatformOption(); const arch = this.distributionArchitecture(); - let fetchedReleasesJson = yield this.fetchReleasesFromUrl('https://sap.github.io/SapMachine/assets/data/sapmachine-releases-all.json'); + let fetchedReleasesJson = yield this.fetchReleasesFromUrl('https://sapmachine.io/assets/data/sapmachine-releases-all.json'); if (!fetchedReleasesJson) { - fetchedReleasesJson = yield this.fetchReleasesFromUrl('https://api.github.com/repos/SAP/SapMachine/contents/assets/data/sapmachine-releases-all.json?ref=gh-pages', (0, util_1.getGitHubHttpHeaders)()); + fetchedReleasesJson = yield this.fetchReleasesFromUrl('https://sap.github.io/SapMachine/assets/data/sapmachine-releases-all.json'); } if (!fetchedReleasesJson) { throw new Error(`Couldn't fetch SapMachine versions information from both primary and backup urls`); diff --git a/src/distributions/sapmachine/installer.ts b/src/distributions/sapmachine/installer.ts index dfe32e161..39014b6f8 100644 --- a/src/distributions/sapmachine/installer.ts +++ b/src/distributions/sapmachine/installer.ts @@ -64,13 +64,12 @@ export class SapMachineDistribution extends JavaBase { const arch = this.distributionArchitecture(); let fetchedReleasesJson = await this.fetchReleasesFromUrl( - 'https://sap.github.io/SapMachine/assets/data/sapmachine-releases-all.json' + 'https://sapmachine.io/assets/data/sapmachine-releases-all.json' ); if (!fetchedReleasesJson) { fetchedReleasesJson = await this.fetchReleasesFromUrl( - 'https://api.github.com/repos/SAP/SapMachine/contents/assets/data/sapmachine-releases-all.json?ref=gh-pages', - getGitHubHttpHeaders() + 'https://sap.github.io/SapMachine/assets/data/sapmachine-releases-all.json' ); }