44 workflow_dispatch :
55 inputs :
66 restateVersion :
7- description : ' Restate runtime version (without prepending v). Leave empty if you do not want to update it.'
7+ description : " Restate runtime version (without prepending v). Leave empty if you do not want to update it."
88 required : false
99 type : string
1010 sdkTypescriptVersion :
11- description : ' sdk-typescript version (without prepending v). Leave empty if you do not want to update it.'
11+ description : " sdk-typescript version (without prepending v). Leave empty if you do not want to update it."
1212 required : false
1313 type : string
1414 sdkJavaVersion :
15- description : ' sdk-java version (without prepending v). Leave empty if you do not want to update it.'
15+ description : " sdk-java version (without prepending v). Leave empty if you do not want to update it."
16+ required : false
17+ type : string
18+ sdkGoVersion :
19+ description : " sdk-go version (WITH the prepending v). Leave empty if you do not want to update it."
1620 required : false
1721 type : string
1822 cdkVersion :
19- description : ' cdk version (without prepending v). Leave empty if you do not want to update it.'
23+ description : " cdk version (without prepending v). Leave empty if you do not want to update it."
2024 required : false
2125 type : string
2226
4044 if : github.event.inputs.sdkTypescriptVersion != ''
4145 with :
4246 node-version : " 19.x"
43- registry-url : ' https://registry.npmjs.org'
47+ registry-url : " https://registry.npmjs.org"
4448 - name : Bump sdk-typescript
4549 if : github.event.inputs.sdkTypescriptVersion != ''
4650 run : ./.tools/update_node_examples.sh ${{ inputs.sdkTypescriptVersion }}
5559 - uses : actions/setup-java@v3
5660 if : github.event.inputs.sdkJavaVersion != ''
5761 with :
58- distribution : ' temurin'
59- java-version : ' 17 '
62+ distribution : " temurin"
63+ java-version : " 17 "
6064 - name : Setup Gradle
6165 if : github.event.inputs.sdkJavaVersion != ''
6266 uses : gradle/actions/setup-gradle@v3
@@ -67,13 +71,27 @@ jobs:
6771 if : github.event.inputs.sdkJavaVersion != ''
6872 run : ./.tools/run_jvm_tests.sh
6973
74+ # Bump Go SDK
75+ - uses : actions/setup-go@v5
76+ if : github.event.inputs.sdkGoVersion != ''
77+ with :
78+ go-version : " 1.22"
79+ - name : Bump sdk-go
80+ if : github.event.inputs.sdkGoVersion != ''
81+ run : ./.tools/update_go_examples.sh ${{ inputs.sdkGoVersion }}
82+ - name : Run Go tests
83+ if : github.event.inputs.sdkGoVersion != ''
84+ run : ./.tools/run_go_tests.sh
85+
7086 - name : Create Pull Request
7187 uses : peter-evans/create-pull-request@v5
7288 with :
73- title : " [GithubActions] Update Restate ${{ inputs.restateVersion != '' && format('Runtime {0} ', inputs.restateVersion) }}${{ inputs.sdkTypescriptVersion != '' && format('SDK-Typescript {0} ', inputs.sdkTypescriptVersion) }}${{ inputs.sdkJavaVersion != '' && format('SDK-Java {0} ', inputs.sdkJavaVersion) }}${{ inputs.cdkVersion != '' && format('CDK {0} ', inputs.cdkVersion) }}"
89+ title : " [GithubActions] Update Restate ${{ inputs.restateVersion != '' && format('Runtime {0} ', inputs.restateVersion) }}${{ inputs.sdkTypescriptVersion != '' && format('SDK-Typescript {0} ', inputs.sdkTypescriptVersion) }}${{ inputs.sdkJavaVersion != '' && format('SDK-Java {0} ', inputs.sdkJavaVersion) }}${{ inputs.cdkVersion != '' && format('CDK {0} ', inputs.cdkVersion) }}${{ inputs.sdkGoVersion != '' && format('SDK-Go {0} ', inputs.sdkGoVersion) }} "
7490 commit-message : " [GithubActions] Update Restate ${{ inputs.restateVersion != '' && format('Runtime {0} ', inputs.restateVersion) }}${{ inputs.sdkTypescriptVersion != '' && format('SDK-Typescript {0} ', inputs.sdkTypescriptVersion) }}${{ inputs.sdkJavaVersion != '' && format('SDK-Java {0} ', inputs.sdkJavaVersion) }}${{ inputs.cdkVersion != '' && format('CDK {0} ', inputs.cdkVersion) }}"
7591 add-paths : |
7692 **/package.json
7793 **/package-lock.json
7894 **/build.gradle.kts
7995 **/pom.xml
96+ **/go.mod
97+ **/go.sum
0 commit comments