diff --git a/dist/index.js b/dist/index.js index fc85d1b..704af94 100644 --- a/dist/index.js +++ b/dist/index.js @@ -27916,7 +27916,7 @@ try { } else { await (0,_src_spawnProcess_js__WEBPACK_IMPORTED_MODULE_2__/* .spawnProcess */ .N)('git', ['fetch', '--depth=1'], repository); - await (0,_src_spawnProcess_js__WEBPACK_IMPORTED_MODULE_2__/* .spawnProcess */ .N)('git', ['checkout', branch], repository); + await (0,_src_spawnProcess_js__WEBPACK_IMPORTED_MODULE_2__/* .spawnProcess */ .N)('git', ['switch', branch], repository); await (0,_src_spawnProcess_js__WEBPACK_IMPORTED_MODULE_2__/* .spawnProcess */ .N)('git', [ 'commit', '-m', diff --git a/index.ts b/index.ts index 1450625..2cd257a 100644 --- a/index.ts +++ b/index.ts @@ -36,7 +36,7 @@ try { console.log('Working tree is empty. Nothing to commit.') } else { await spawnProcess('git', ['fetch', '--depth=1'], repository) - await spawnProcess('git', ['checkout', branch], repository) + await spawnProcess('git', ['switch', branch], repository) await spawnProcess( 'git', [ diff --git a/tsconfig.json b/tsconfig.json index 94ba3af..d2d9e58 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,6 +6,7 @@ "skipLibCheck": true, "noEmit": true, /* Linting */ + "types": ["node"], "noImplicitAny": true, "strictPropertyInitialization": true, "strictNullChecks": true,