ci: fix Chrome auto-roller (#10330)
This commit is contained in:
parent
7b8f1e2a0d
commit
651a378521
@ -126,16 +126,16 @@ async function updateVersionFileLastMaintained(currentVersion, updateVersion) {
|
|||||||
VERSIONS_PER_RELEASE_COMMENT,
|
VERSIONS_PER_RELEASE_COMMENT,
|
||||||
`${VERSIONS_PER_RELEASE_COMMENT}\n ['${version}', 'NEXT'],`
|
`${VERSIONS_PER_RELEASE_COMMENT}\n ['${version}', 'NEXT'],`
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const lastMaintainedIndex = versions.indexOf(lastMaintainedChromeVersion);
|
||||||
|
const nextMaintainedVersion = versions[lastMaintainedIndex - 1];
|
||||||
|
|
||||||
|
await replaceInFile(
|
||||||
|
'./versions.js',
|
||||||
|
`const lastMaintainedChromeVersion = '${lastMaintainedChromeVersion}';`,
|
||||||
|
`const lastMaintainedChromeVersion = '${nextMaintainedVersion}';`
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const lastMaintainedIndex = versions.indexOf(lastMaintainedChromeVersion);
|
|
||||||
const nextMaintainedVersion = versions[lastMaintainedIndex - 1];
|
|
||||||
|
|
||||||
await replaceInFile(
|
|
||||||
'./versions.js',
|
|
||||||
`const lastMaintainedChromeVersion = '${lastMaintainedChromeVersion}';`,
|
|
||||||
`const lastMaintainedChromeVersion = '${nextMaintainedVersion}';`
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const {version, revision} = await getVersionAndRevisionForStable();
|
const {version, revision} = await getVersionAndRevisionForStable();
|
||||||
|
Loading…
Reference in New Issue
Block a user