mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
Removes the temp branch
This commit is contained in:
parent
adea226f67
commit
9ec407dad8
@ -233,6 +233,11 @@ export async function deploy(action: ActionInterface): Promise<Status> {
|
|||||||
action.workspace
|
action.workspace
|
||||||
)
|
)
|
||||||
|
|
||||||
|
await execute(
|
||||||
|
`git branch -D ${temporaryDeploymentBranch}`,
|
||||||
|
action.workspace
|
||||||
|
)
|
||||||
|
|
||||||
return Status.SUCCESS
|
return Status.SUCCESS
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
@ -248,10 +253,6 @@ export async function deploy(action: ActionInterface): Promise<Status> {
|
|||||||
`git worktree remove ${temporaryDeploymentDirectory} --force`,
|
`git worktree remove ${temporaryDeploymentDirectory} --force`,
|
||||||
action.workspace
|
action.workspace
|
||||||
)
|
)
|
||||||
await execute(
|
|
||||||
`git branch -d ${temporaryDeploymentBranch}`,
|
|
||||||
action.workspace
|
|
||||||
)
|
|
||||||
await rmRF(temporaryDeploymentDirectory)
|
await rmRF(temporaryDeploymentDirectory)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user