fix(vpn): support default region enum value in tests (#165) #209
This file contains hidden or 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
name: Update SDK Repo Workflow | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
env: | |
GO_VERSION: "1.22" | |
JAVA_VERSION: "11" | |
jobs: | |
main-go: | |
name: "[Go] Update SDK Repo" | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write | |
contents: write | |
steps: | |
- name: Install SSH Key | |
uses: shimataro/ssh-key-action@v2 | |
with: | |
key: ${{ secrets.SSH_PRIVATE_KEY }} | |
known_hosts: ${{ vars.SSH_KNOWN_HOSTS }} | |
- name: Install Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: "temurin" | |
java-version: ${{ env.JAVA_VERSION }} | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Build | |
uses: ./.github/actions/build/go | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
- name: Generate SDK | |
uses: ./.github/actions/generate-sdk/go | |
- name: Push SDK | |
env: | |
GH_REPO: "stackitcloud/stackit-sdk-go" | |
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 }})" | |
main-python: | |
name: "[Python] Update SDK Repo" | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write | |
contents: write | |
steps: | |
- name: Install SSH Key | |
uses: shimataro/ssh-key-action@v2 | |
with: | |
key: ${{ secrets.SSH_PRIVATE_KEY }} | |
known_hosts: ${{ vars.SSH_KNOWN_HOSTS }} | |
- name: Install Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: "temurin" | |
java-version: ${{ env.JAVA_VERSION }} | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Build | |
uses: ./.github/actions/build/python | |
- name: Generate SDK | |
uses: ./.github/actions/generate-sdk/python | |
- name: Push SDK | |
env: | |
GH_REPO: "stackitcloud/stackit-sdk-python" | |
GH_TOKEN: ${{ secrets.SDK_PR_TOKEN }} | |
run: | | |
set -e | |
python -m venv .venv | |
. .venv/bin/activate | |
python -m pip install --upgrade pip | |
pip install poetry | |
poetry config virtualenvs.create false | |
(cd ./sdk-repo-updated && make install-dev) | |
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 }})" "git@github.com:stackitcloud/stackit-sdk-python.git" "python" |