mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
ci: fix fmt
This commit is contained in:
parent
55d6fcc350
commit
d8401e1937
2 changed files with 3 additions and 4 deletions
|
|
@ -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 "action@github.com"`
|
||||
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`
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue