Skip to content

Commit 2a35008

Browse files
committed
pipeline
1 parent 67b4816 commit 2a35008

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/sdk-pr.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ jobs:
1515
name: [Go] Update SDK Repo
1616
runs-on: ubuntu-latest
1717
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v3
1820
- name: Install SSH Key
1921
uses: shimataro/ssh-key-action@v2
2022
with:
@@ -30,6 +32,7 @@ jobs:
3032
with:
3133
repository: "stackitcloud/stackit-sdk-generator"
3234
ref: "main"
35+
path: 'generator-repo'
3336
- name: Build
3437
uses: ./.github/actions/build
3538
with:
@@ -50,10 +53,13 @@ jobs:
5053
GH_TOKEN: ${{ secrets.SDK_PR_TOKEN }}
5154
run: |
5255
scripts/sdk-create-pr.sh "oas-bot-${{ github.run_id }}" "Generated from GitHub run [${{ github.run_id }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})"
56+
5357
main-python:
5458
name: [Python] Update SDK Repo
5559
runs-on: ubuntu-latest
5660
steps:
61+
- name: Checkout code
62+
uses: actions/checkout@v3
5763
- name: Install SSH Key
5864
uses: shimataro/ssh-key-action@v2
5965
with:
@@ -69,6 +75,7 @@ jobs:
6975
with:
7076
repository: "stackitcloud/stackit-sdk-generator"
7177
ref: "main"
78+
path: 'generator-repo'
7279
- name: Build
7380
uses: ./.github/actions/build
7481
with:
@@ -77,7 +84,8 @@ jobs:
7784
run: make download-oas
7885
- name: Generate SDK
7986
run: make generate-sdk LANGUAGE=python
80-
- uses: actions/checkout@v3
87+
- name: Checkout Python SDK Core
88+
uses: actions/checkout@v3
8189
with:
8290
repository: "stackitcloud/stackit-sdk-python-core"
8391
ref: "main"
@@ -99,4 +107,4 @@ jobs:
99107
GH_REPO: "stackitcloud/stackit-sdk-python"
100108
GH_TOKEN: ${{ secrets.SDK_PR_TOKEN }}
101109
run: |
102-
scripts/sdk-create-pr.sh "generator-bot-${{ github.run_id }}" "Generated from GitHub run [${{ github.run_id }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})" "[email protected]:stackitcloud/stackit-sdk-python.git" "python"
110+
scripts/sdk-create-pr.sh "generator-bot-${{ github.run_id }}" "Generated from GitHub run [${{ github.run_id }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})" "[email protected]:stackitcloud/stackit-sdk-python.git" "python"

0 commit comments

Comments
 (0)