Removes the temp branch

This commit is contained in:
James Ives 2020-05-24 12:16:08 -04:00
parent adea226f67
commit 9ec407dad8

View File

@ -233,6 +233,11 @@ export async function deploy(action: ActionInterface): Promise<Status> {
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<Status> {
`git worktree remove ${temporaryDeploymentDirectory} --force`,
action.workspace
)
await execute(
`git branch -d ${temporaryDeploymentBranch}`,
action.workspace
)
await rmRF(temporaryDeploymentDirectory)
}
}