ci: fix Chrome auto-roller (#10330)

This commit is contained in:
Nikolay Vitkov 2023-06-06 17:38:58 +02:00 committed by GitHub
parent 7b8f1e2a0d
commit 651a378521
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -126,16 +126,16 @@ async function updateVersionFileLastMaintained(currentVersion, updateVersion) {
VERSIONS_PER_RELEASE_COMMENT,
`${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();