diff --git a/script/release-artifact-cleanup.js b/script/release-artifact-cleanup.js index a6e84c6dcd3c4..d15a864dcbb36 100644 --- a/script/release-artifact-cleanup.js +++ b/script/release-artifact-cleanup.js @@ -37,7 +37,7 @@ async function getCurrentBranch (gitDir) { } async function revertBumpCommit (tag) { - const branch = getCurrentBranch() + const branch = await getCurrentBranch() const commitToRevert = getLastBumpCommit(tag).hash await GitProcess.exec(['revert', commitToRevert], gitDir) const pushDetails = await GitProcess.exec(['push', 'origin', `HEAD:${branch}`, '--follow-tags'], gitDir)