File tree 1 file changed +1
-5
lines changed 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -136,11 +136,7 @@ function deploy(action) {
136
136
finally {
137
137
// Cleans up temporary files/folders and restores the git state.
138
138
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 ) ;
144
140
yield execute_1 . execute ( `git worktree remove ${ temporaryDeploymentDirectory } --force` , action . workspace , action . silent ) ;
145
141
yield io_1 . rmRF ( temporaryDeploymentDirectory ) ;
146
142
}
You can’t perform that action at this time.
0 commit comments