File tree 2 files changed +6
-0
lines changed
2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 39
39
working-directory : ${{ env.PACKAGE_DIR }}
40
40
steps :
41
41
- uses : actions/create-github-app-token@v1
42
+ if : inputs.release
42
43
id : app_token
43
44
with :
44
45
app-id : ${{ secrets.BOT_ID }}
47
48
with :
48
49
ref : ${{ github.ref }}
49
50
token : ${{ steps.app_token.outputs.token }}
51
+ if : inputs.release
50
52
- uses : oven-sh/setup-bun@v2
53
+ if : inputs.release
51
54
with :
52
55
bun-version : latest
53
56
- working-directory : " ."
71
74
run : |
72
75
sed -i 's/packageVersion: .*/packageVersion: "${{ steps.convert_version.outputs.version }}"/' api/oas_templates/python/openapi-config.yaml
73
76
- working-directory : api
77
+ if : steps.semantic_release.outputs.version != ''
74
78
run : |
75
79
bun install --frozen-lockfile
76
80
bun run generate:${{ inputs.api }}:py
@@ -217,6 +221,7 @@ jobs:
217
221
with :
218
222
ref : ${{ github.ref }}
219
223
fetch-depth : 0
224
+ token : ${{ steps.app_token.outputs.token }}
220
225
- name : Reset branch
221
226
if : needs.get_version.outputs.version_commit_sha != ''
222
227
env :
Original file line number Diff line number Diff line change @@ -315,6 +315,7 @@ jobs:
315
315
with :
316
316
ref : ${{ github.ref }}
317
317
fetch-depth : 0
318
+ token : ${{ steps.app_token.outputs.token }}
318
319
- name : Reset branch
319
320
if : needs.get_version.outputs.version_commit_sha != ''
320
321
env :
You can’t perform that action at this time.
0 commit comments