summaryrefslogtreecommitdiffhomepage
path: root/script/format.ts
diff options
context:
space:
mode:
authorAiden Cline <[email protected]>2025-12-07 21:48:41 -0600
committerAiden Cline <[email protected]>2025-12-07 21:48:41 -0600
commit076c8b2ca1b12769a45206d709fd2232d167818b (patch)
treed5a4a0daa34b8887d7a605c05ed4f04a1aa40be8 /script/format.ts
parent9a90939ac410e3ebffb741994383d7a434069682 (diff)
downloadopencode-076c8b2ca1b12769a45206d709fd2232d167818b.tar.gz
opencode-076c8b2ca1b12769a45206d709fd2232d167818b.zip
ci: fix fmt
Diffstat (limited to 'script/format.ts')
-rwxr-xr-xscript/format.ts3
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`
}