File tree Expand file tree Collapse file tree 4 files changed +6
-12
lines changed Expand file tree Collapse file tree 4 files changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -2,12 +2,9 @@ name: CI
22
33on :
44 push :
5- branches :
6- - main
7- - next
5+ branches : [main]
86 pull_request :
9- branches :
10- - main
7+ branches : [main]
118
129defaults :
1310 run :
Original file line number Diff line number Diff line change @@ -2,12 +2,9 @@ name: Codegen CI
22
33on :
44 push :
5- branches :
6- - main
7- - next
5+ branches : [main]
86 pull_request :
9- branches :
10- - main
7+ branches : [main]
118
129defaults :
1310 run :
Original file line number Diff line number Diff line change 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}"
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ permissions:
1717jobs :
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
You can’t perform that action at this time.
0 commit comments