File tree Expand file tree Collapse file tree 3 files changed +12
-4
lines changed
Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -216,7 +216,7 @@ describe('git', () => {
216216 await deploy ( action )
217217
218218 // Includes the call to generateWorktree
219- expect ( execute ) . toBeCalledTimes ( 11 )
219+ expect ( execute ) . toBeCalledTimes ( 12 )
220220 expect ( rmRF ) . toBeCalledTimes ( 1 )
221221 } )
222222
@@ -240,7 +240,7 @@ describe('git', () => {
240240 await deploy ( action )
241241
242242 // Includes the call to generateWorktree
243- expect ( execute ) . toBeCalledTimes ( 10 )
243+ expect ( execute ) . toBeCalledTimes ( 11 )
244244 expect ( rmRF ) . toBeCalledTimes ( 1 )
245245 } )
246246
@@ -265,7 +265,7 @@ describe('git', () => {
265265 await deploy ( action )
266266
267267 // Includes the call to generateWorktree
268- expect ( execute ) . toBeCalledTimes ( 10 )
268+ expect ( execute ) . toBeCalledTimes ( 11 )
269269 expect ( rmRF ) . toBeCalledTimes ( 1 )
270270 } )
271271
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ describe('main', () => {
4949 debug : true
5050 } )
5151 await run ( action )
52- expect ( execute ) . toBeCalledTimes ( 14 )
52+ expect ( execute ) . toBeCalledTimes ( 13 )
5353 expect ( rmRF ) . toBeCalledTimes ( 1 )
5454 expect ( exportVariable ) . toBeCalledTimes ( 1 )
5555 } )
Original file line number Diff line number Diff line change @@ -143,6 +143,14 @@ export async function deploy(action: ActionInterface): Promise<Status> {
143143 action . silent
144144 )
145145
146+ if ( action . singleCommit ) {
147+ await execute (
148+ `git add --all .` ,
149+ `${ action . workspace } /${ temporaryDeploymentDirectory } ` ,
150+ action . silent
151+ )
152+ }
153+
146154 // Use git status to check if we have something to commit.
147155 // Special case is singleCommit with existing history, when
148156 // we're really interested if the diff against the upstream branch
You can’t perform that action at this time.
0 commit comments