mirror of
https://github.com/actions/setup-java.git
synced 2024-12-02 05:10:57 -05:00
Fix Format, Inaccessible URLs
This commit is contained in:
parent
4caaa522a7
commit
4776457db0
2 changed files with 4307 additions and 4298 deletions
8598
dist/setup/index.js
vendored
8598
dist/setup/index.js
vendored
File diff suppressed because it is too large
Load diff
|
@ -122,7 +122,7 @@ export class JetBrainsDistribution extends JavaBase {
|
||||||
page_index++;
|
page_index++;
|
||||||
}
|
}
|
||||||
|
|
||||||
const versions = rawVersions.map(v => {
|
const versions0 = rawVersions.map(v => {
|
||||||
// Release tags look like one of these:
|
// Release tags look like one of these:
|
||||||
// jbr-release-21.0.3b465.3
|
// jbr-release-21.0.3b465.3
|
||||||
// jb11_0_11-b87.7
|
// jb11_0_11-b87.7
|
||||||
|
@ -161,6 +161,11 @@ export class JetBrainsDistribution extends JavaBase {
|
||||||
} as IJetBrainsVersion;
|
} as IJetBrainsVersion;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const versions = versions0.filter(async i => {
|
||||||
|
const res = await this.http.head(i.url);
|
||||||
|
return res.message.statusCode === 200;
|
||||||
|
});
|
||||||
|
|
||||||
if (core.isDebug()) {
|
if (core.isDebug()) {
|
||||||
core.startGroup('Print information about available versions');
|
core.startGroup('Print information about available versions');
|
||||||
console.timeEnd('Retrieving available versions for JBR took'); // eslint-disable-line no-console
|
console.timeEnd('Retrieving available versions for JBR took'); // eslint-disable-line no-console
|
||||||
|
|
Loading…
Reference in a new issue