Fix Format, Inaccessible URLs

This commit is contained in:
Gregory Mitchell 2024-11-07 13:42:41 +00:00 committed by GitHub
parent 4caaa522a7
commit 4776457db0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4307 additions and 4298 deletions

8598
dist/setup/index.js vendored

File diff suppressed because it is too large Load diff

View file

@ -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