diff options
Diffstat (limited to 'script/version.ts')
| -rwxr-xr-x | script/version.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/script/version.ts b/script/version.ts index 7bed6d3a9..2fa59fe9f 100755 --- a/script/version.ts +++ b/script/version.ts @@ -6,7 +6,8 @@ import { $ } from "bun" const output = [`version=${Script.version}`] if (!Script.preview) { - await $`opencode run --command changelog`.cwd(process.cwd()) + const sha = process.env.GITHUB_SHA ?? (await $`git rev-parse HEAD`.text()).trim() + await $`opencode run --command changelog -- --to ${sha}`.cwd(process.cwd()) const file = `${process.cwd()}/UPCOMING_CHANGELOG.md` const body = await Bun.file(file) .text() |
