Browse Source

chore: fix await in cleanup script

Shelley Vohr 6 years ago
parent
commit
e405103880
1 changed files with 1 additions and 1 deletions
  1. 1 1
      script/release-artifact-cleanup.js

+ 1 - 1
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)