1414 main-go :
1515 name : " [Go] Update SDK Repo"
1616 runs-on : ubuntu-latest
17- permissions :
17+ permissions :
1818 pull-requests : write
1919 contents : write
2020 steps :
@@ -23,44 +23,44 @@ jobs:
2323 with :
2424 key : ${{ secrets.SSH_PRIVATE_KEY }}
2525 known_hosts : ${{ vars.SSH_KNOWN_HOSTS }}
26-
26+
2727 - name : Install Java
2828 uses : actions/setup-java@v4
2929 with :
3030 distribution : " temurin"
3131 java-version : ${{ env.JAVA_VERSION }}
32-
32+
3333 - name : Checkout
3434 uses : actions/checkout@v4
35-
35+
3636 - name : Install Go
3737 uses : actions/setup-go@v5
3838 with :
3939 go-version : ${{ env.GO_VERSION }}
40-
40+
4141 - name : Install project tools and dependencies
4242 shell : bash
4343 run : make project-tools
44-
44+
4545 - name : Download OAS
4646 shell : bash
4747 run : make download-oas
48-
48+
4949 - name : Generate SDK
5050 shell : bash
5151 run : make generate-sdk
52-
52+
5353 - name : Push SDK
5454 env :
5555 GH_REPO : " stackitcloud/stackit-sdk-go"
5656 GH_TOKEN : ${{ secrets.SDK_PR_TOKEN }}
5757 run : |
5858 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 }})"
59-
59+
6060 main-python :
6161 name : " [Python] Update SDK Repo"
6262 runs-on : ubuntu-latest
63- permissions :
63+ permissions :
6464 pull-requests : write
6565 contents : write
6666 steps :
@@ -69,37 +69,42 @@ jobs:
6969 with :
7070 key : ${{ secrets.SSH_PRIVATE_KEY }}
7171 known_hosts : ${{ vars.SSH_KNOWN_HOSTS }}
72-
72+
7373 - name : Install Java
7474 uses : actions/setup-java@v4
7575 with :
7676 distribution : " temurin"
7777 java-version : ${{ env.JAVA_VERSION }}
78-
78+
79+ - name : Install Go
80+ uses : actions/setup-go@v5
81+ with :
82+ go-version : ${{ env.GO_VERSION }}
83+
7984 - name : Checkout
8085 uses : actions/checkout@v4
81-
86+
8287 - name : Install project tools and dependencies
8388 shell : bash
8489 run : |
8590 python -m venv .venv
8691 . .venv/bin/activate
8792 python -m pip install --upgrade pip
8893 make project-tools LANGUAGE=python
89-
94+
9095 - name : install uv
9196 uses : astral-sh/setup-uv@v7
9297 with :
9398 version : " 0.10.4"
94-
99+
95100 - name : Download OAS
96101 shell : bash
97102 run : make download-oas
98-
103+
99104 - name : Generate SDK
100105 shell : bash
101106 run : make generate-sdk LANGUAGE=python
102-
107+
103108 - name : Push SDK
104109 env :
105110 GH_REPO : " stackitcloud/stackit-sdk-python"
@@ -111,7 +116,7 @@ jobs:
111116 main-java :
112117 name : " [Java] Update SDK Repo"
113118 runs-on : ubuntu-latest
114- permissions :
119+ permissions :
115120 pull-requests : write
116121 contents : write
117122 steps :
@@ -120,24 +125,29 @@ jobs:
120125 with :
121126 key : ${{ secrets.SSH_PRIVATE_KEY }}
122127 known_hosts : ${{ vars.SSH_KNOWN_HOSTS }}
123-
128+
129+ - name : Install Go
130+ uses : actions/setup-go@v5
131+ with :
132+ go-version : ${{ env.GO_VERSION }}
133+
124134 - name : Install Java
125135 uses : actions/setup-java@v4
126136 with :
127137 distribution : " temurin"
128138 java-version : ${{ env.JAVA_VERSION }}
129-
139+
130140 - name : Checkout
131141 uses : actions/checkout@v5
132-
142+
133143 - name : Download OAS
134144 run : make download-oas
135-
145+
136146 - name : Generate SDK
137147 run : make generate-sdk
138148 env :
139149 LANGUAGE : java
140-
150+
141151 - name : Push SDK
142152 env :
143153 GH_REPO : " stackitcloud/stackit-sdk-java"
0 commit comments