File tree 1 file changed +9
-2
lines changed
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -31,9 +31,16 @@ core.info(`Running in ${baseDir}`)
31
31
core . info ( '> Checking for uncommitted changes in the git working tree...' )
32
32
const changedFiles = ( await git . diffSummary ( [ '--cached' ] ) ) . files . length
33
33
// continue if there are any changes or if the allow-empty commit argument is included
34
- if ( changedFiles > 0 || matchGitArgs ( getInput ( 'commit' ) || '' ) . includes ( '--allow-empty' ) ) {
34
+ if (
35
+ changedFiles > 0 ||
36
+ matchGitArgs ( getInput ( 'commit' ) || '' ) . includes ( '--allow-empty' )
37
+ ) {
35
38
core . info ( `> Found ${ changedFiles } changed files.` )
36
- core . debug ( `--allow-empty argument detected: ${ matchGitArgs ( getInput ( 'commit' ) || '' ) . includes ( '--allow-empty' ) } ` )
39
+ core . debug (
40
+ `--allow-empty argument detected: ${ matchGitArgs (
41
+ getInput ( 'commit' ) || ''
42
+ ) . includes ( '--allow-empty' ) } `
43
+ )
37
44
38
45
await git
39
46
. addConfig ( 'user.email' , getInput ( 'author_email' ) , undefined , log )
You can’t perform that action at this time.
0 commit comments