diff --git a/lib/main.js b/lib/main.js index bf79bf5..40cebff 100644 --- a/lib/main.js +++ b/lib/main.js @@ -53,7 +53,7 @@ function run() { core.info('⚠️ Nothing to deploy'); return; } - yield exec.exec('git', ['add', '.']); + yield exec.exec('git', ['add', '--all', '.']); let gitCommitCmd = []; gitCommitCmd.push('commit'); if (allow_empty_commit) { diff --git a/src/main.ts b/src/main.ts index af1ee6a..1a6ea78 100644 --- a/src/main.ts +++ b/src/main.ts @@ -40,7 +40,7 @@ async function run() { return; } - await exec.exec('git', ['add', '.']); + await exec.exec('git', ['add', '--all', '.']); let gitCommitCmd: Array = []; gitCommitCmd.push('commit');