mirror of
https://github.com/actions/setup-java.git
synced 2025-11-05 17:00:54 +00:00
Remove unnecessary GitHub HTTP headers from fetchReleasesFromUrl call
This commit is contained in:
parent
3727bd882b
commit
f36eaff1c9
2 changed files with 2 additions and 3 deletions
2
dist/setup/index.js
vendored
2
dist/setup/index.js
vendored
|
|
@ -130422,7 +130422,7 @@ class SapMachineDistribution extends base_installer_1.JavaBase {
|
|||
const arch = this.distributionArchitecture();
|
||||
let fetchedReleasesJson = yield this.fetchReleasesFromUrl('https://sapmachine.io/assets/data/sapmachine-releases-all.json');
|
||||
if (!fetchedReleasesJson) {
|
||||
fetchedReleasesJson = yield this.fetchReleasesFromUrl('https://sap.github.io/SapMachine/assets/data/sapmachine-releases-all.json', (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`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue