From 851c8baff19931fdd56875df7e0a2c28f7df468e Mon Sep 17 00:00:00 2001 From: di-sukharev Date: Sun, 21 May 2023 12:26:02 +0800 Subject: [PATCH] build --- out/github-action.cjs | 5 +++-- src/github-action.ts | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/out/github-action.cjs b/out/github-action.cjs index 7a1b334..5130907 100644 --- a/out/github-action.cjs +++ b/out/github-action.cjs @@ -27298,8 +27298,9 @@ echo $(( count + 1 )) > count.txt ` ); await import_exec.default.exec(`chmod +x ./rebase-exec.sh`); - await execPromise( - `git rebase ${commitsToImprove[0].sha}^ --exec "./rebase-exec.sh"`, + await import_exec.default.exec( + "git", + ["rebase", `${commitsToImprove[0].sha}^`, "--exec", "./rebase-exec.sh"], { env: { GIT_SEQUENCE_EDITOR: 'sed -i -e "s/^pick/reword/g"', diff --git a/src/github-action.ts b/src/github-action.ts index 237ae9e..68ccc25 100644 --- a/src/github-action.ts +++ b/src/github-action.ts @@ -181,8 +181,9 @@ echo $(( count + 1 )) > count.txt await exec.exec(`chmod +x ./rebase-exec.sh`); - await execPromise( - `git rebase ${commitsToImprove[0].sha}^ --exec "./rebase-exec.sh"`, + await exec.exec( + 'git', + ['rebase', `${commitsToImprove[0].sha}^`, '--exec', './rebase-exec.sh'], { env: { GIT_SEQUENCE_EDITOR: 'sed -i -e "s/^pick/reword/g"',