diff options
| author | Frank <[email protected]> | 2025-07-16 16:12:31 +0800 |
|---|---|---|
| committer | Frank <[email protected]> | 2025-07-16 16:12:31 +0800 |
| commit | b79167ce66a0a43fe16958461d1cfdb121eb8242 (patch) | |
| tree | 314f0e30379f0c106301dcfa099276d9de581157 /scripts | |
| parent | 7ac0a2bc659fa589df95c8ef6a31d74d08288fd7 (diff) | |
| download | opencode-b79167ce66a0a43fe16958461d1cfdb121eb8242.tar.gz opencode-b79167ce66a0a43fe16958461d1cfdb121eb8242.zip | |
sync
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/publish-github-action.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/publish-github-action.ts b/scripts/publish-github-action.ts index 391b25a57..9cfe11aff 100755 --- a/scripts/publish-github-action.ts +++ b/scripts/publish-github-action.ts @@ -1,12 +1,12 @@ #!/usr/bin/env bun -import { $ } from "bun" +import { $, ShellError } from "bun" try { await $`git tag -d github-v1` await $`git push origin :refs/tags/github-v1` } catch (e) { - if (e instanceof Error && e.message.includes("not found")) { + if (e instanceof ShellError && e.stderr.toString().match(/tag \S+ not found/)) { console.log("tag not found, continuing...") } else { throw e |
