File tree Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Original file line number Diff line number Diff line change 8
8
workflow_dispatch :
9
9
inputs :
10
10
gosdk :
11
- description : ' The version of 0Chain GoSDK'
11
+ description : ' The version/branch of 0Chain GoSDK'
12
+ required : true
13
+ base :
14
+ description : the base branch to which PR needs to be raised
12
15
required : true
13
16
14
17
jobs :
15
18
create-pr :
16
- runs-on : [self-hosted, build ]
19
+ runs-on : [arc-runner ]
17
20
steps :
18
- - name : Setup go 1.18
21
+ - name : Setup go 1.20
19
22
uses : actions/setup-go@v2
20
23
with :
21
- go-version : ' 1.18 '
24
+ go-version : ' 1.20 '
22
25
23
26
- name : Checkout
24
- uses : actions/checkout@v1
27
+ uses : actions/checkout@v4
28
+ with :
29
+ ref : ${{ github.event.inputs.base }}
25
30
26
31
- name : Upgrade 0Chain GoSDK
27
32
run : |
28
33
echo "BRANCH=$(echo ${{github.event.inputs.gosdk}} | sed 's/\//-/g')" >> $GITHUB_ENV
29
-
34
+
30
35
go get github.com/0chain/gosdk@${{github.event.inputs.gosdk}}
31
36
go mod tidy
32
37
33
38
- name : Create Pull Request
34
39
uses : peter-evans/create-pull-request@v3
35
40
with :
36
- base : staging
41
+ base : ${{ github.event.inputs.base }}
37
42
token : ${{ secrets.GOSDK }}
38
43
commit-message : upgrade GoSDK to ${{ github.event.inputs.gosdk }}
39
44
branch : gosdk-upgrade-${{ env.BRANCH }}
43
48
0Chain GoSDK `${{ github.event.inputs.gosdk }}` is released.
44
49
see full changelog on https://github.com/0chain/gosdk/releases/tag/${{ github.event.inputs.gosdk }}
45
50
draft : false
46
- reviewers : cnlangzi
51
+ reviewers : guruhubb
47
52
labels : GoSDK
You can’t perform that action at this time.
0 commit comments