-
Notifications
You must be signed in to change notification settings - Fork 16
47 lines (40 loc) · 1.33 KB
/
gosdk.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: "Upgrade 0Chain GoSDK"
concurrency:
group: "gosdk-${{ github.ref }}"
cancel-in-progress: true
on:
workflow_dispatch:
inputs:
gosdk:
description: 'The version of 0Chain GoSDK'
required: true
jobs:
create-pr:
runs-on: [self-hosted, build]
steps:
- name: Setup go
uses: actions/setup-go@v3
with:
go-version: ^1.20.0
- name: Checkout
uses: actions/checkout@v2
- name: Upgrade 0Chain GoSDK
run: |
echo "BRANCH=$(echo ${{github.event.inputs.gosdk}} | sed 's/\//-/g')" >> $GITHUB_ENV
go get github.com/0chain/gosdk@${{github.event.inputs.gosdk}}
go mod tidy
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
base: staging
token: ${{ secrets.GOSDK }}
commit-message: upgrade GoSDK to ${{ github.event.inputs.gosdk }}
branch: gosdk-upgrade-${{ env.BRANCH }}
delete-branch: true
title: Upgrade 0Chain GoSDK to ${{ github.event.inputs.gosdk }}
body: |
0Chain GoSDK `${{ github.event.inputs.gosdk }}` is released.
see full changelog on https://github.com/0chain/gosdk/releases/tag/${{ github.event.inputs.gosdk }}
draft: false
reviewers: cnlangzi
labels: GoSDK