summaryrefslogtreecommitdiffhomepage
path: root/script/format.ts
diff options
context:
space:
mode:
authorAiden Cline <[email protected]>2025-12-07 20:28:50 -0600
committerAiden Cline <[email protected]>2025-12-07 20:28:50 -0600
commitd8401e1937257d56a2f3e6b48cbb8be94f7ce7e7 (patch)
tree90d7b80f093643e6554788fb1f0a8783f2f32f0e /script/format.ts
parent55d6fcc35003f3cda747968e5f9edf78dc54de14 (diff)
downloadopencode-d8401e1937257d56a2f3e6b48cbb8be94f7ce7e7.tar.gz
opencode-d8401e1937257d56a2f3e6b48cbb8be94f7ce7e7.zip
ci: fix fmt
Diffstat (limited to 'script/format.ts')
-rwxr-xr-xscript/format.ts3
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`
}