File tree 3 files changed +12
-4
lines changed
3 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -216,7 +216,7 @@ describe('git', () => {
216
216
await deploy ( action )
217
217
218
218
// Includes the call to generateWorktree
219
- expect ( execute ) . toBeCalledTimes ( 11 )
219
+ expect ( execute ) . toBeCalledTimes ( 12 )
220
220
expect ( rmRF ) . toBeCalledTimes ( 1 )
221
221
} )
222
222
@@ -240,7 +240,7 @@ describe('git', () => {
240
240
await deploy ( action )
241
241
242
242
// Includes the call to generateWorktree
243
- expect ( execute ) . toBeCalledTimes ( 10 )
243
+ expect ( execute ) . toBeCalledTimes ( 11 )
244
244
expect ( rmRF ) . toBeCalledTimes ( 1 )
245
245
} )
246
246
@@ -265,7 +265,7 @@ describe('git', () => {
265
265
await deploy ( action )
266
266
267
267
// Includes the call to generateWorktree
268
- expect ( execute ) . toBeCalledTimes ( 10 )
268
+ expect ( execute ) . toBeCalledTimes ( 11 )
269
269
expect ( rmRF ) . toBeCalledTimes ( 1 )
270
270
} )
271
271
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ describe('main', () => {
49
49
debug : true
50
50
} )
51
51
await run ( action )
52
- expect ( execute ) . toBeCalledTimes ( 14 )
52
+ expect ( execute ) . toBeCalledTimes ( 13 )
53
53
expect ( rmRF ) . toBeCalledTimes ( 1 )
54
54
expect ( exportVariable ) . toBeCalledTimes ( 1 )
55
55
} )
Original file line number Diff line number Diff line change @@ -143,6 +143,14 @@ export async function deploy(action: ActionInterface): Promise<Status> {
143
143
action . silent
144
144
)
145
145
146
+ if ( action . singleCommit ) {
147
+ await execute (
148
+ `git add --all .` ,
149
+ `${ action . workspace } /${ temporaryDeploymentDirectory } ` ,
150
+ action . silent
151
+ )
152
+ }
153
+
146
154
// Use git status to check if we have something to commit.
147
155
// Special case is singleCommit with existing history, when
148
156
// we're really interested if the diff against the upstream branch
You can’t perform that action at this time.
0 commit comments