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,7 +126,6 @@ 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 lastMaintainedIndex = versions.indexOf(lastMaintainedChromeVersion);
const nextMaintainedVersion = versions[lastMaintainedIndex - 1]; const nextMaintainedVersion = versions[lastMaintainedIndex - 1];
@ -136,6 +135,7 @@ async function updateVersionFileLastMaintained(currentVersion, updateVersion) {
`const lastMaintainedChromeVersion = '${lastMaintainedChromeVersion}';`, `const lastMaintainedChromeVersion = '${lastMaintainedChromeVersion}';`,
`const lastMaintainedChromeVersion = '${nextMaintainedVersion}';` `const lastMaintainedChromeVersion = '${nextMaintainedVersion}';`
); );
}
} }
const {version, revision} = await getVersionAndRevisionForStable(); const {version, revision} = await getVersionAndRevisionForStable();