@@ -13,13 +13,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
13
13
} ;
14
14
Object . defineProperty ( exports , "__esModule" , { value : true } ) ;
15
15
exports . deploy = exports . init = void 0 ;
16
- const core_1 = require ( "@actions/core" ) ;
17
- const io_1 = require ( "@actions/io" ) ;
18
- const fs_1 = __importDefault ( require ( "fs" ) ) ;
19
16
const constants_1 = require ( "./constants" ) ;
17
+ const util_1 = require ( "./util" ) ;
18
+ const io_1 = require ( "@actions/io" ) ;
20
19
const execute_1 = require ( "./execute" ) ;
20
+ const fs_1 = __importDefault ( require ( "fs" ) ) ;
21
21
const worktree_1 = require ( "./worktree" ) ;
22
- const util_1 = require ( "./util " ) ;
22
+ const core_1 = require ( "@actions/core " ) ;
23
23
/* Initializes git in the workspace. */
24
24
function init ( action ) {
25
25
return __awaiter ( this , void 0 , void 0 , function * ( ) {
@@ -104,6 +104,10 @@ function deploy(action) {
104
104
: '' } --exclude .ssh --exclude .git --exclude .github ${ action . folderPath === action . workspace
105
105
? `--exclude ${ temporaryDeploymentDirectory } `
106
106
: '' } `, action . workspace , action . silent ) ;
107
+ if ( action . singleCommit ) {
108
+ core_1 . info ( `--DEBUG: Running git add --all .` ) ;
109
+ yield execute_1 . execute ( `git add --all .` , `${ action . workspace } /${ temporaryDeploymentDirectory } ` , action . silent ) ;
110
+ }
107
111
// Use git status to check if we have something to commit.
108
112
// Special case is singleCommit with existing history, when
109
113
// we're really interested if the diff against the upstream branch
0 commit comments