build: rebase release branch before reverting bump (#30400)
This commit is contained in:
parent
423172775e
commit
59ab79417d
1 changed files with 1 additions and 0 deletions
|
@ -26,6 +26,7 @@ function getLastBumpCommit (tag) {
|
||||||
async function revertBumpCommit (tag) {
|
async function revertBumpCommit (tag) {
|
||||||
const branch = await getCurrentBranch();
|
const branch = await getCurrentBranch();
|
||||||
const commitToRevert = getLastBumpCommit(tag).hash;
|
const commitToRevert = getLastBumpCommit(tag).hash;
|
||||||
|
await GitProcess.exec(['pull', '--rebase']);
|
||||||
await GitProcess.exec(['revert', commitToRevert], ELECTRON_DIR);
|
await GitProcess.exec(['revert', commitToRevert], ELECTRON_DIR);
|
||||||
const pushDetails = await GitProcess.exec(['push', 'origin', `HEAD:${branch}`, '--follow-tags'], ELECTRON_DIR);
|
const pushDetails = await GitProcess.exec(['push', 'origin', `HEAD:${branch}`, '--follow-tags'], ELECTRON_DIR);
|
||||||
if (pushDetails.exitCode === 0) {
|
if (pushDetails.exitCode === 0) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue