File tree Expand file tree Collapse file tree 3 files changed +26
-3
lines changed
scripts/generate-sdk/languages Expand file tree Collapse file tree 3 files changed +26
-3
lines changed Original file line number Diff line number Diff line change 7676 python-version : ${{ matrix.python-version }}
7777 - name : Install core
7878 run : |
79+ pip install poetry
80+ poetry config virtualenvs.create false
7981 git clone https://github.com/stackitcloud/stackit-sdk-python-core.git core
80- cd core;make install-dev;
82+ cd core;make install;
83+ - name : Install sdk
84+ working-directory : ./sdk-repo-updated
85+ run : make install-dev
8186 - name : Lint
8287 working-directory : ./sdk-repo-updated
8388 run : make lint
Original file line number Diff line number Diff line change 1212
1313jobs :
1414 main-go :
15- name : [Go] Update SDK Repo
15+ name : " [Go] Update SDK Repo"
1616 runs-on : ubuntu-latest
1717 steps :
1818 - name : Install SSH Key
4040 run : |
4141 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 }})"
4242 main-python :
43- name : [Python] Update SDK Repo
43+ name : " [Python] Update SDK Repo"
4444 runs-on : ubuntu-latest
4545 steps :
4646 - name : Install SSH Key
Original file line number Diff line number Diff line change @@ -124,6 +124,24 @@ generate_python_sdk() {
124124 cp -r ${sdk_services_backup_dir} /${service} /src/wait ${SERVICES_FOLDER} /${service} /src/wait
125125 fi
126126
127+ # If the service has a README.md file, move them inside the service folder
128+ if [ -f ${sdk_services_backup_dir} /${service} /README.md ]; then
129+ echo " Found ${service} \" README.md\" file"
130+ cp -r ${sdk_services_backup_dir} /${service} /README.md ${SERVICES_FOLDER} /${service} /README.md
131+ fi
132+
133+ # If the service has a pyproject.toml file, move them inside the service folder
134+ if [ -f ${sdk_services_backup_dir} /${service} /pyproject.toml ]; then
135+ echo " Found ${service} \" pyproject.toml\" file"
136+ cp -r ${sdk_services_backup_dir} /${service} /pyproject.toml ${SERVICES_FOLDER} /${service} /pyproject.toml
137+ fi
138+
139+ # If the service has a poetry.lock file, move them inside the service folder
140+ if [ -f ${sdk_services_backup_dir} /${service} /poetry.lock ]; then
141+ echo " Found ${service} \" poetry.lock\" file"
142+ cp -r ${sdk_services_backup_dir} /${service} /poetry.lock ${SERVICES_FOLDER} /${service} /poetry.lock
143+ fi
144+
127145 # If the service has a CHANGELOG file, move it inside the service folder
128146 if [ -f ${sdk_services_backup_dir} /${service} /CHANGELOG.md ]; then
129147 echo " Found ${service} \" CHANGELOG\" file"
You can’t perform that action at this time.
0 commit comments