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