-
Notifications
You must be signed in to change notification settings - Fork 72
51 lines (44 loc) · 1.38 KB
/
sdk-python.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Python SDK
permissions:
contents: write
pull-requests: write
on:
workflow_dispatch:
# TODO (pmarton): enable after python client generation is fixed with TypeSpec generated OpenAPI spec
# push:
# branches:
# - main
# paths:
# - api/openapi.yaml
# - .github/workflows/sdk-python.yaml
env:
DAGGER_VERSION: 0.15.2
jobs:
generate:
name: Generate
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
ref: ${{ github.head_ref }}
- name: Generate
uses: dagger/dagger-for-github@847ae4458ef34fe9b5f566655957bde6d4891112 # v7.0.3
with:
verb: call
args: generate python-sdk -o api/client/python
cloud-token: ${{ secrets.DAGGER_CLOUD_NO_CACHE_TOKEN }}
version: ${{ env.DAGGER_VERSION }}
- name: Open pull request
uses: peter-evans/create-pull-request@v7
with:
branch: openapi/python-sdk
branch-suffix: short-commit-hash
delete-branch: true
commit-message: "chore(api): generate python client"
title: "[bot] Re-generate Python client"
body: "This PR was automatically generated."
labels: |
area/api
release-note/misc
token: ${{ secrets.BOT_GITHUB_TOKEN }}