Skip to content

Commit df67ae9

Browse files
committed
ci: regen sdk instead of failing tests
1 parent ebe20ef commit df67ae9

File tree

2 files changed

+38
-6
lines changed

2 files changed

+38
-6
lines changed

.github/workflows/sdk.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: sdk
2+
3+
on:
4+
push:
5+
branches-ignore:
6+
- production
7+
pull_request:
8+
branches-ignore:
9+
- production
10+
workflow_dispatch:
11+
jobs:
12+
format:
13+
runs-on: blacksmith-4vcpu-ubuntu-2404
14+
permissions:
15+
contents: write
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
with:
20+
token: ${{ secrets.GITHUB_TOKEN }}
21+
22+
- name: Setup Bun
23+
uses: ./.github/actions/setup-bun
24+
25+
- name: run
26+
run: |
27+
bun ./packages/sdk/js/script/build.ts
28+
if [ -z "$(git status --porcelain)" ]; then
29+
echo "No changes to commit"
30+
exit 0
31+
fi
32+
git config --local user.email "action@github.com"
33+
git config --local user.name "GitHub Action"
34+
git add -A
35+
git commit -m "chore: regen sdk"
36+
git push --no-verify
37+
env:
38+
CI: true

.github/workflows/test.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,3 @@ jobs:
2828
bun turbo test
2929
env:
3030
CI: true
31-
32-
- name: Check SDK is up to date
33-
run: |
34-
bun ./packages/sdk/js/script/build.ts
35-
git diff --exit-code packages/sdk/js/src/gen packages/sdk/js/dist
36-
continue-on-error: false

0 commit comments

Comments
 (0)