diff --git a/src/git.ts b/src/git.ts index 01e66fa7..c7973287 100644 --- a/src/git.ts +++ b/src/git.ts @@ -239,6 +239,10 @@ export async function deploy(action: ActionInterface): Promise { ) } finally { // Ensures the deployment directory is safely removed. + await execute( + `chmod u+w -R ${temporaryDeploymentDirectory}`, + action.workspace + ) await execute(`rm -rf ${temporaryDeploymentDirectory}`, action.workspace) } }