wip: github actions

This commit is contained in:
Frank 2025-07-16 16:20:06 +08:00
parent b79167ce66
commit c3c647a21a

View file

@ -1,12 +1,12 @@
#!/usr/bin/env bun #!/usr/bin/env bun
import { $, ShellError } from "bun" import { $ } from "bun"
try { try {
await $`git tag -d github-v1` await $`git tag -d github-v1`
await $`git push origin :refs/tags/github-v1` await $`git push origin :refs/tags/github-v1`
} catch (e) { } catch (e: any) {
if (e instanceof ShellError && e.stderr.toString().match(/tag \S+ not found/)) { if (e instanceof $.ShellError && e.stderr.toString().match(/tag \S+ not found/)) {
console.log("tag not found, continuing...") console.log("tag not found, continuing...")
} else { } else {
throw e throw e