From 9ec407dad8f9c6645f6a161aebc6fc2c6754c590 Mon Sep 17 00:00:00 2001 From: James Ives Date: Sun, 24 May 2020 12:16:08 -0400 Subject: [PATCH] Removes the temp branch --- src/git.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/git.ts b/src/git.ts index 7208db8b..c9daaf90 100644 --- a/src/git.ts +++ b/src/git.ts @@ -233,6 +233,11 @@ export async function deploy(action: ActionInterface): Promise { action.workspace ) + await execute( + `git branch -D ${temporaryDeploymentBranch}`, + action.workspace + ) + return Status.SUCCESS } catch (error) { throw new Error( @@ -248,10 +253,6 @@ export async function deploy(action: ActionInterface): Promise { `git worktree remove ${temporaryDeploymentDirectory} --force`, action.workspace ) - await execute( - `git branch -d ${temporaryDeploymentBranch}`, - action.workspace - ) await rmRF(temporaryDeploymentDirectory) } }