1111 JAVA_VERSION : ' 11'
1212
1313jobs :
14- main :
14+ main-go :
1515 name : Update SDK Repo
1616 runs-on : ubuntu-latest
1717 steps :
@@ -31,19 +31,39 @@ jobs:
3131 uses : ./.github/actions/build
3232 with :
3333 go-version : ${{ env.GO_VERSION }}
34- - name : Generate Go SDK
34+ - name : Generate SDK
3535 uses : ./.github/actions/generate-sdk/go
36- - name : Push Go SDK
36+ - name : Push SDK
3737 env :
3838 GH_REPO : ' stackitcloud/stackit-sdk-go'
3939 GH_TOKEN : ${{ secrets.SDK_PR_TOKEN }}
4040 run : |
41- 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 }})"
42- - name : Generate Python SDK
41+ 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 }})"
42+ main-python :
43+ name : Update SDK Repo
44+ runs-on : ubuntu-latest
45+ steps :
46+ - name : Install SSH Key
47+ uses : shimataro/ssh-key-action@v2
48+ with :
49+ key : ${{ secrets.SSH_PRIVATE_KEY }}
50+ known_hosts : ${{ vars.SSH_KNOWN_HOSTS }}
51+ - name : Install Java
52+ uses : actions/setup-java@v4
53+ with :
54+ distribution : ' temurin'
55+ java-version : ${{ env.JAVA_VERSION }}
56+ - name : Checkout
57+ uses : actions/checkout@v4
58+ - name : Build
59+ uses : ./.github/actions/build
60+ with :
61+ go-version : ${{ env.GO_VERSION }}
62+ - name : Generate SDK
4363 uses : ./.github/actions/generate-sdk/python
44- - name : Push Python SDK
64+ - name : Push SDK
4565 env :
4666 GH_REPO : ' stackitcloud/stackit-sdk-python'
4767 GH_TOKEN : ${{ secrets.SDK_PR_TOKEN }}
4868 run : |
49- 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" 69+ 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