build: fix valid versions in issue version parsing (#43346)
This commit is contained in:
parent
d7689bb9b5
commit
3f71ed7355
1 changed files with 2 additions and 1 deletions
3
.github/workflows/issue-opened.yml
vendored
3
.github/workflows/issue-opened.yml
vendored
|
@ -76,7 +76,8 @@ jobs:
|
||||||
const { ElectronVersions } = await import('${{ github.workspace }}/node_modules/@electron/fiddle-core/dist/index.js');
|
const { ElectronVersions } = await import('${{ github.workspace }}/node_modules/@electron/fiddle-core/dist/index.js');
|
||||||
const versions = await ElectronVersions.create(undefined, { ignoreCache: true });
|
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);
|
core.setOutput('unsupportedMajor', true);
|
||||||
labels.push('blocked/need-info ❌');
|
labels.push('blocked/need-info ❌');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue