mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
Make sure rm -rf actually works. (#242)
* Make sure rm -rf actually works. This makes sure directories in `temporaryDeploymentDirectory` are writabe before attempting to remove them. Fixes: #241 * Run formatter
This commit is contained in:
parent
a4ffdc587d
commit
42b62470e4
@ -239,6 +239,10 @@ export async function deploy(action: ActionInterface): Promise<void> {
|
||||
)
|
||||
} finally {
|
||||
// Ensures the deployment directory is safely removed.
|
||||
await execute(
|
||||
`chmod u+w -R ${temporaryDeploymentDirectory}`,
|
||||
action.workspace
|
||||
)
|
||||
await execute(`rm -rf ${temporaryDeploymentDirectory}`, action.workspace)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user