diff options
| author | Aiden Cline <[email protected]> | 2025-12-07 20:28:50 -0600 |
|---|---|---|
| committer | Aiden Cline <[email protected]> | 2025-12-07 20:28:50 -0600 |
| commit | d8401e1937257d56a2f3e6b48cbb8be94f7ce7e7 (patch) | |
| tree | 90d7b80f093643e6554788fb1f0a8783f2f32f0e /script/format.ts | |
| parent | 55d6fcc35003f3cda747968e5f9edf78dc54de14 (diff) | |
| download | opencode-d8401e1937257d56a2f3e6b48cbb8be94f7ce7e7.tar.gz opencode-d8401e1937257d56a2f3e6b48cbb8be94f7ce7e7.zip | |
ci: fix fmt
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` } |
