Skip to content

Commit 639eaa8

Browse files
authored
Merge pull request #89 from algorandfoundation/build/tweak-py-api-client
build: adjust py api ci/cd to do less when not doing a release
2 parents b4ad294 + 891ea01 commit 639eaa8

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/python_api_client_ci_cd.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
working-directory: ${{ env.PACKAGE_DIR }}
4040
steps:
4141
- uses: actions/create-github-app-token@v1
42+
if: inputs.release
4243
id: app_token
4344
with:
4445
app-id: ${{ secrets.BOT_ID }}
@@ -47,7 +48,9 @@ jobs:
4748
with:
4849
ref: ${{ github.ref }}
4950
token: ${{ steps.app_token.outputs.token }}
51+
if: inputs.release
5052
- uses: oven-sh/setup-bun@v2
53+
if: inputs.release
5154
with:
5255
bun-version: latest
5356
- working-directory: "."
@@ -71,6 +74,7 @@ jobs:
7174
run: |
7275
sed -i 's/packageVersion: .*/packageVersion: "${{ steps.convert_version.outputs.version }}"/' api/oas_templates/python/openapi-config.yaml
7376
- working-directory: api
77+
if: steps.semantic_release.outputs.version != ''
7478
run: |
7579
bun install --frozen-lockfile
7680
bun run generate:${{ inputs.api }}:py
@@ -217,6 +221,7 @@ jobs:
217221
with:
218222
ref: ${{ github.ref }}
219223
fetch-depth: 0
224+
token: ${{ steps.app_token.outputs.token }}
220225
- name: Reset branch
221226
if: needs.get_version.outputs.version_commit_sha != ''
222227
env:

.github/workflows/python_uniffi_ci_cd.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,7 @@ jobs:
315315
with:
316316
ref: ${{ github.ref }}
317317
fetch-depth: 0
318+
token: ${{ steps.app_token.outputs.token }}
318319
- name: Reset branch
319320
if: needs.get_version.outputs.version_commit_sha != ''
320321
env:

0 commit comments

Comments
 (0)