From 999988e54b45bfcb72f3489e957067993c0201c8 Mon Sep 17 00:00:00 2001 From: James Ives Date: Sun, 24 May 2020 11:18:06 -0400 Subject: [PATCH] Moves where the log is placed for clarity --- src/git.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/git.ts b/src/git.ts index 1a39ac69..aaacc7d6 100644 --- a/src/git.ts +++ b/src/git.ts @@ -202,9 +202,6 @@ export async function deploy(action: ActionInterface): Promise { info(`Changes committed to the ${action.branch} branch… 📦`) - // Cleans up temporary files/folders and restores the git state. - info('Running post deployment cleanup jobs…') - if (action.singleCommit) { await execute(`git fetch ${action.repositoryPath}`, action.workspace) await execute( @@ -245,7 +242,8 @@ export async function deploy(action: ActionInterface): Promise { )} ❌` ) } finally { - // Ensures the deployment directory is safely removed after each deployment. + // Cleans up temporary files/folders and restores the git state. + info('Running post deployment cleanup jobs… 🗑️') await execute( `git worktree remove ${temporaryDeploymentDirectory}`, action.workspace