summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFrank <[email protected]>2025-07-16 16:12:31 +0800
committerFrank <[email protected]>2025-07-16 16:12:31 +0800
commitb79167ce66a0a43fe16958461d1cfdb121eb8242 (patch)
tree314f0e30379f0c106301dcfa099276d9de581157
parent7ac0a2bc659fa589df95c8ef6a31d74d08288fd7 (diff)
downloadopencode-b79167ce66a0a43fe16958461d1cfdb121eb8242.tar.gz
opencode-b79167ce66a0a43fe16958461d1cfdb121eb8242.zip
sync
-rwxr-xr-xscripts/publish-github-action.ts4
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