mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-21 09:44:21 +01:00
wip: github actions
This commit is contained in:
16
scripts/publish-github-action.ts
Executable file
16
scripts/publish-github-action.ts
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bun
|
||||
|
||||
import { $ } 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")) {
|
||||
console.log("tag not found, continuing...")
|
||||
} else {
|
||||
throw e
|
||||
}
|
||||
}
|
||||
await $`git tag -a github-v1 -m "Update github-v1 to latest"`
|
||||
await $`git push origin github-v1`
|
||||
Reference in New Issue
Block a user