File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Update SDK
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ - chore/CD-pull-based-sdk-update
8+ workflow_dispatch :
9+
10+ env :
11+ GO_VERSION : " 1.25"
12+ JAVA_VERSION : " 25"
13+
14+ jobs :
15+ update-sdk :
16+ name : " Update SDK Repo"
17+ runs-on : ubuntu-latest
18+ permissions :
19+ pull-requests : write
20+ contents : write
21+ steps :
22+ - name : Install Java
23+ uses : actions/setup-java@v4
24+ with :
25+ distribution : " temurin"
26+ java-version : ${{ env.JAVA_VERSION }}
27+
28+ - name : Install Go
29+ uses : actions/setup-go@v5
30+ with :
31+ go-version : ${{ env.GO_VERSION }}
32+
33+ - name : Checkout SDK generator
34+ uses : actions/checkout@v4
35+ with :
36+ repository : " stackitcloud/stackit-sdk-generator"
37+
38+ - name : Install project tools and dependencies
39+ shell : bash
40+ run : make project-tools
41+
42+ - name : Download OAS
43+ shell : bash
44+ run : make download-oas
45+
46+ - name : Generate SDK
47+ shell : bash
48+ run : make generate-go-sdk
49+
50+ - name : Push SDK
51+ env :
52+ REPO_URL : " https://x-access-token:${{secrets.GITHUB_TOKEN}}@github.com/${{ github.repository }}.git"
53+ run : |
54+ 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 }})"
55+
You can’t perform that action at this time.
0 commit comments