Skip to content

Commit

Permalink
ci: rename sdk generation jobs
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
  • Loading branch information
sagikazarmark committed May 7, 2024
1 parent 353d1fe commit c99e596
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Generate / Node SDK
name: Node SDK

permissions:
contents: write
Expand All @@ -11,26 +11,28 @@ on:
- main
paths:
- api/openapi.yaml
- ".github/workflows/generate-client-node.yaml"
- .github/workflows/sdk-node.yaml

jobs:
generate:
name: Generate
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
ref: ${{ github.head_ref }}

- name: Generate Client
- name: Generate
uses: dagger/dagger-for-github@eba69b4dddb54eddfdb51a88eb7fd86957137630 # v5.4.0
with:
verb: call
args: --source .:default generate node-sdk -o api/client/node
cloud-token: ${{ secrets.DAGGER_CLOUD_TOKEN }}
version: "0.11.2"

- name: Open Pull Request
- name: Open pull request
uses: peter-evans/create-pull-request@v6
with:
branch: openapi/node-sdk
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Generate / Python SDK
name: Python SDK

permissions:
contents: write
Expand All @@ -11,26 +11,28 @@ on:
- main
paths:
- api/openapi.yaml
- ".github/workflows/generate-client-python.yaml"
- .github/workflows/sdk-python.yaml

jobs:
generate:
name: Generate
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
ref: ${{ github.head_ref }}

- name: Generate Client
- name: Generate
uses: dagger/dagger-for-github@eba69b4dddb54eddfdb51a88eb7fd86957137630 # v5.4.0
with:
verb: call
args: --source .:default generate python-sdk -o api/client/python
cloud-token: ${{ secrets.DAGGER_CLOUD_TOKEN }}
version: "0.11.2"

- name: Open Pull Request
- name: Open pull request
uses: peter-evans/create-pull-request@v6
with:
branch: openapi/python-sdk
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Generate / Web SDK
name: Web SDK

permissions:
contents: write
Expand All @@ -11,26 +11,28 @@ on:
- main
paths:
- api/openapi.yaml
- ".github/workflows/generate-client-web.yaml"
- .github/workflows/sdk-web.yaml

jobs:
generate:
name: Generate
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
ref: ${{ github.head_ref }}

- name: Generate Client
- name: Generate
uses: dagger/dagger-for-github@eba69b4dddb54eddfdb51a88eb7fd86957137630 # v5.4.0
with:
verb: call
args: --source .:default generate web-sdk -o api/client/web
cloud-token: ${{ secrets.DAGGER_CLOUD_TOKEN }}
version: "0.11.2"

- name: Open Pull Request
- name: Open pull request
uses: peter-evans/create-pull-request@v6
with:
branch: openapi/web-sdk
Expand Down

0 comments on commit c99e596

Please sign in to comment.