Skip to content

Commit

Permalink
pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
MelvinKl committed Nov 5, 2024
1 parent 67b4816 commit 2a35008
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/sdk-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -30,6 +32,7 @@ jobs:
with:
repository: "stackitcloud/stackit-sdk-generator"
ref: "main"
path: 'generator-repo'
- name: Build
uses: ./.github/actions/build
with:
Expand All @@ -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:
Expand All @@ -69,6 +75,7 @@ jobs:
with:
repository: "stackitcloud/stackit-sdk-generator"
ref: "main"
path: 'generator-repo'
- name: Build
uses: ./.github/actions/build
with:
Expand All @@ -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"
Expand All @@ -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"

0 comments on commit 2a35008

Please sign in to comment.