Skip to content

Commit 0d9f6eb

Browse files
committed
chore(ci): unify with other SDKs
1 parent 002506f commit 0d9f6eb

File tree

4 files changed

+6
-12
lines changed

4 files changed

+6
-12
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,9 @@ name: CI
22

33
on:
44
push:
5-
branches:
6-
- main
7-
- next
5+
branches: [main]
86
pull_request:
9-
branches:
10-
- main
7+
branches: [main]
118

129
defaults:
1310
run:

.github/workflows/codegen.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,9 @@ name: Codegen CI
22

33
on:
44
push:
5-
branches:
6-
- main
7-
- next
5+
branches: [main]
86
pull_request:
9-
branches:
10-
- main
7+
branches: [main]
118

129
defaults:
1310
run:

.github/workflows/generate.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,4 @@ jobs:
8080
TARGET_REPO: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name || github.repository }}
8181
TARGET_REF: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.ref || github.ref_name }}
8282
run: |
83-
git push "https://x-access-token:${GH_TOKEN}@github.com/${TARGET_REPO}.git" HEAD:${TARGET_REF}
83+
git push "https://x-access-token:${GH_TOKEN}@github.com/${TARGET_REPO}.git" "HEAD:${TARGET_REF}"

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ permissions:
1717
jobs:
1818
publish:
1919
name: Publish
20-
if: github.event_name == 'release' && !github.event.prerelease
20+
if: '!github.event.prerelease'
2121
runs-on: ubuntu-latest
2222
steps:
2323
- name: Checkout code

0 commit comments

Comments
 (0)