chore: fix supported versions automation (#31602)
This commit is contained in:
parent
771a8f70da
commit
0f0ed5921d
2 changed files with 2 additions and 2 deletions
|
@ -73,7 +73,7 @@ until the maintainers feel the maintenance burden is too high to continue doing
|
|||
* 17.x.y
|
||||
* 16.x.y
|
||||
* 15.x.y
|
||||
* 13
|
||||
* 14.x.y
|
||||
|
||||
### End-of-life
|
||||
|
||||
|
|
|
@ -174,7 +174,7 @@ async function updateWinRC (components) {
|
|||
// updates support.md file with new semver values (stable only)
|
||||
async function updateSupported (version, filePath) {
|
||||
const v = parseInt(version);
|
||||
const newVersions = [`* ${v}.x.y`, `* ${v - 1}.x.y`, `* ${v - 2}.x.y`, `* ${v - 3}`];
|
||||
const newVersions = [`* ${v}.x.y`, `* ${v - 1}.x.y`, `* ${v - 2}.x.y`, `* ${v - 3}.x.y`];
|
||||
const contents = await readFile(filePath, 'utf8');
|
||||
const previousVersions = contents.split('\n').filter((elem) => {
|
||||
return (/[^\n]*\.x\.y[^\n]*/).test(elem);
|
||||
|
|
Loading…
Reference in a new issue