Skip to content

Commit 7ac0a2b

Browse files
author
Frank
committed
wip: github actions
1 parent cb032cf commit 7ac0a2b

File tree

4 files changed

+18
-11
lines changed

4 files changed

+18
-11
lines changed

.github/workflows/opencode.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
fetch-depth: 1
1818

1919
- name: Run opencode
20-
uses: sst/opencode/sdks/github@dev
20+
uses: sst/opencode/sdks/github@github-v1
2121
env:
2222
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
2323
with:

.github/workflows/publish-github-action.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,4 @@ jobs:
2626
run: |
2727
git config --global user.email "opencode@sst.dev"
2828
git config --global user.name "opencode"
29-
./script/publish-github-action.ts
30-
working-directory: ./packages/opencode
29+
./scripts/publish-github-action.ts

packages/opencode/script/publish-github-action.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

scripts/publish-github-action.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/usr/bin/env bun
2+
3+
import { $ } from "bun"
4+
5+
try {
6+
await $`git tag -d github-v1`
7+
await $`git push origin :refs/tags/github-v1`
8+
} catch (e) {
9+
if (e instanceof Error && e.message.includes("not found")) {
10+
console.log("tag not found, continuing...")
11+
} else {
12+
throw e
13+
}
14+
}
15+
await $`git tag -a github-v1 -m "Update github-v1 to latest"`
16+
await $`git push origin github-v1`

0 commit comments

Comments
 (0)