summaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/sdk.yml
diff options
context:
space:
mode:
authorAiden Cline <[email protected]>2025-12-05 14:48:27 -0600
committerAiden Cline <[email protected]>2025-12-05 15:01:41 -0600
commitdf67ae9cbe06e26e41472ab1f0169d4f088c4bc6 (patch)
treefa92e6d86662459c12b7a093428074dc4c9a65e4 /.github/workflows/sdk.yml
parentebe20efb2917042daee158b718ed5767994ea3ae (diff)
downloadopencode-df67ae9cbe06e26e41472ab1f0169d4f088c4bc6.tar.gz
opencode-df67ae9cbe06e26e41472ab1f0169d4f088c4bc6.zip
ci: regen sdk instead of failing tests
Diffstat (limited to '.github/workflows/sdk.yml')
-rw-r--r--.github/workflows/sdk.yml38
1 files changed, 38 insertions, 0 deletions
diff --git a/.github/workflows/sdk.yml b/.github/workflows/sdk.yml
new file mode 100644
index 000000000..1eb22584f
--- /dev/null
+++ b/.github/workflows/sdk.yml
@@ -0,0 +1,38 @@
+name: sdk
+
+on:
+ push:
+ branches-ignore:
+ - production
+ pull_request:
+ branches-ignore:
+ - production
+ workflow_dispatch:
+jobs:
+ format:
+ runs-on: blacksmith-4vcpu-ubuntu-2404
+ permissions:
+ contents: write
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v4
+ with:
+ token: ${{ secrets.GITHUB_TOKEN }}
+
+ - name: Setup Bun
+ uses: ./.github/actions/setup-bun
+
+ - name: run
+ run: |
+ bun ./packages/sdk/js/script/build.ts
+ if [ -z "$(git status --porcelain)" ]; then
+ echo "No changes to commit"
+ exit 0
+ fi
+ git config --local user.email "[email protected]"
+ git config --local user.name "GitHub Action"
+ git add -A
+ git commit -m "chore: regen sdk"
+ git push --no-verify
+ env:
+ CI: true