-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
10 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,8 @@ jobs: | |
name: [Go] Update SDK Repo | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Install SSH Key | ||
uses: shimataro/ssh-key-action@v2 | ||
with: | ||
|
@@ -30,6 +32,7 @@ jobs: | |
with: | ||
repository: "stackitcloud/stackit-sdk-generator" | ||
ref: "main" | ||
path: 'generator-repo' | ||
- name: Build | ||
uses: ./.github/actions/build | ||
with: | ||
|
@@ -50,10 +53,13 @@ jobs: | |
GH_TOKEN: ${{ secrets.SDK_PR_TOKEN }} | ||
run: | | ||
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 }})" | ||
main-python: | ||
name: [Python] Update SDK Repo | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Install SSH Key | ||
uses: shimataro/ssh-key-action@v2 | ||
with: | ||
|
@@ -69,6 +75,7 @@ jobs: | |
with: | ||
repository: "stackitcloud/stackit-sdk-generator" | ||
ref: "main" | ||
path: 'generator-repo' | ||
- name: Build | ||
uses: ./.github/actions/build | ||
with: | ||
|
@@ -77,7 +84,8 @@ jobs: | |
run: make download-oas | ||
- name: Generate SDK | ||
run: make generate-sdk LANGUAGE=python | ||
- uses: actions/checkout@v3 | ||
- name: Checkout Python SDK Core | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: "stackitcloud/stackit-sdk-python-core" | ||
ref: "main" | ||
|
@@ -99,4 +107,4 @@ jobs: | |
GH_REPO: "stackitcloud/stackit-sdk-python" | ||
GH_TOKEN: ${{ secrets.SDK_PR_TOKEN }} | ||
run: | | ||
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" | ||
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" |