File tree Expand file tree Collapse file tree 2 files changed +38
-6
lines changed
Expand file tree Collapse file tree 2 files changed +38
-6
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments