mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
Not
This commit is contained in:
parent
beddbf76e3
commit
19e358b0c2
@ -151,7 +151,6 @@ function deploy(action) {
|
||||
// Cleans up temporary files/folders and restores the git state.
|
||||
core_1.info('Running post deployment cleanup jobs… 🗑️');
|
||||
yield execute_1.execute(`git worktree remove ${temporaryDeploymentDirectory} --force`, action.workspace);
|
||||
yield execute_1.execute(`git branch -d ${temporaryDeploymentBranch}`, action.workspace);
|
||||
yield io_1.rmRF(temporaryDeploymentDirectory);
|
||||
}
|
||||
});
|
||||
|
@ -248,10 +248,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)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user