From 081b0a9f7fcaa7d9ce98851becd349bf9e182109 Mon Sep 17 00:00:00 2001 From: Mykola Grybyk Date: Fri, 26 Jun 2026 11:51:13 +0200 Subject: [PATCH] fix checkout #7 --- dist/index.js | 2 +- index.ts | 2 +- tsconfig.json | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) 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,