From 3f71ed73552e94ef7c48fb4a685c6054fd4f0bcb Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Mon, 19 Aug 2024 11:04:30 +0200 Subject: [PATCH] build: fix valid versions in issue version parsing (#43346) --- .github/workflows/issue-opened.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/issue-opened.yml b/.github/workflows/issue-opened.yml index b07387daf1..b09d5549fc 100644 --- a/.github/workflows/issue-opened.yml +++ b/.github/workflows/issue-opened.yml @@ -76,7 +76,8 @@ jobs: const { ElectronVersions } = await import('${{ github.workspace }}/node_modules/@electron/fiddle-core/dist/index.js'); const versions = await ElectronVersions.create(undefined, { ignoreCache: true }); - if (!versions.supportedMajors.includes(major)) { + const validVersions = [...versions.supportedMajors, ...versions.prereleaseMajors]; + if (!validVersions.includes(major)) { core.setOutput('unsupportedMajor', true); labels.push('blocked/need-info ❌'); }