Skip to content

Commit 93065a8

Browse files
committed
Deploy Production Code for Commit 312d90d 🚀
1 parent 312d90d commit 93065a8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/git.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,7 @@ function deploy(action) {
136136
finally {
137137
// Cleans up temporary files/folders and restores the git state.
138138
core_1.info('Running post deployment cleanup jobs… 🗑️');
139-
if (!action.singleCommit) {
140-
core_1.info(`Resetting branch and removing artifacts…`);
141-
yield execute_1.execute(`git checkout -B ${temporaryDeploymentBranch}`, `${action.workspace}/${temporaryDeploymentDirectory}`, action.silent);
142-
yield execute_1.execute(`git branch -D ${action.branch} --force`, action.workspace, action.silent);
143-
}
139+
yield execute_1.execute(`git checkout -B ${temporaryDeploymentBranch}`, `${action.workspace}/${temporaryDeploymentDirectory}`, action.silent);
144140
yield execute_1.execute(`git worktree remove ${temporaryDeploymentDirectory} --force`, action.workspace, action.silent);
145141
yield io_1.rmRF(temporaryDeploymentDirectory);
146142
}

0 commit comments

Comments
 (0)