From 93065a8b71cd5d57c379528f7a43a2e38d908af0 Mon Sep 17 00:00:00 2001 From: James Ives Date: Tue, 11 May 2021 23:19:29 +0000 Subject: [PATCH] =?UTF-8?q?Deploy=20Production=20Code=20for=20Commit=20312?= =?UTF-8?q?d90df3bc10fc139b5448a4a2b24a593bbea3d=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/git.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/git.js b/lib/git.js index 25f69d4a..c67d577f 100644 --- a/lib/git.js +++ b/lib/git.js @@ -136,11 +136,7 @@ function deploy(action) { finally { // Cleans up temporary files/folders and restores the git state. core_1.info('Running post deployment cleanup jobs… 🗑️'); - if (!action.singleCommit) { - core_1.info(`Resetting branch and removing artifacts…`); - yield execute_1.execute(`git checkout -B ${temporaryDeploymentBranch}`, `${action.workspace}/${temporaryDeploymentDirectory}`, action.silent); - yield execute_1.execute(`git branch -D ${action.branch} --force`, action.workspace, action.silent); - } + yield execute_1.execute(`git checkout -B ${temporaryDeploymentBranch}`, `${action.workspace}/${temporaryDeploymentDirectory}`, action.silent); yield execute_1.execute(`git worktree remove ${temporaryDeploymentDirectory} --force`, action.workspace, action.silent); yield io_1.rmRF(temporaryDeploymentDirectory); }