mirror of
https://github.com/actions/setup-java.git
synced 2024-12-01 21:00:56 -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++;
|
||||
}
|
||||
|
||||
const versions = rawVersions.map(v => {
|
||||
const versions0 = rawVersions.map(v => {
|
||||
// Release tags look like one of these:
|
||||
// jbr-release-21.0.3b465.3
|
||||
// jb11_0_11-b87.7
|
||||
|
@ -161,6 +161,11 @@ export class JetBrainsDistribution extends JavaBase {
|
|||
} as IJetBrainsVersion;
|
||||
});
|
||||
|
||||
const versions = versions0.filter(async i => {
|
||||
const res = await this.http.head(i.url);
|
||||
return res.message.statusCode === 200;
|
||||
});
|
||||
|
||||
if (core.isDebug()) {
|
||||
core.startGroup('Print information about available versions');
|
||||
console.timeEnd('Retrieving available versions for JBR took'); // eslint-disable-line no-console
|
||||
|
|
Loading…
Reference in a new issue