diff options
Diffstat (limited to 'script')
| -rwxr-xr-x | script/format.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/script/format.ts b/script/format.ts index f5a54a57f..2ae93f169 100755 --- a/script/format.ts +++ b/script/format.ts @@ -9,5 +9,6 @@ if (process.env["CI"] && (await $`git status --porcelain`.text())) { await $`git config --local user.name "GitHub Action"` await $`git add -A` await $`git commit -m "chore: format code"` - await $`git push --no-verify` + const branch = process.env["PUSH_BRANCH"] + await $`git push origin HEAD:${branch} --no-verify` } |
