Skip to content
Closed
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions dist/setup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`);
Expand Down
5 changes: 2 additions & 3 deletions src/distributions/sapmachine/installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
convertVersionToSemver,
extractJdkFile,
getDownloadArchiveExtension,
getGitHubHttpHeaders,

Check failure on line 11 in src/distributions/sapmachine/installer.ts

View workflow job for this annotation

GitHub Actions / Basic validation / build (ubuntu-latest)

'getGitHubHttpHeaders' is defined but never used

Check failure on line 11 in src/distributions/sapmachine/installer.ts

View workflow job for this annotation

GitHub Actions / Basic validation / build (macos-latest)

'getGitHubHttpHeaders' is defined but never used

Check failure on line 11 in src/distributions/sapmachine/installer.ts

View workflow job for this annotation

GitHub Actions / Basic validation / build (windows-latest)

'getGitHubHttpHeaders' is defined but never used
isVersionSatisfies,
renameWinArchive
} from '../../util';
Expand Down Expand Up @@ -64,13 +64,12 @@
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'
);
}

Expand Down
Loading