From e405103880e6fad543ce6dd9425b523b6167f452 Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Tue, 18 Sep 2018 08:19:40 -0700 Subject: [PATCH] chore: fix await in cleanup script --- script/release-artifact-cleanup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/release-artifact-cleanup.js b/script/release-artifact-cleanup.js index a6e84c6dcd3c..d15a864dcbb3 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)