From b79167ce66a0a43fe16958461d1cfdb121eb8242 Mon Sep 17 00:00:00 2001 From: Frank Date: Wed, 16 Jul 2025 16:12:31 +0800 Subject: [PATCH] sync --- scripts/publish-github-action.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/publish-github-action.ts b/scripts/publish-github-action.ts index 391b25a5..9cfe11af 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