Skip to content

Upgrade 0Chain GoSDK #317

Upgrade 0Chain GoSDK

Upgrade 0Chain GoSDK #317

Workflow file for this run

name: "Upgrade 0Chain GoSDK"
concurrency:
group: "gosdk-${{ github.ref }}"
cancel-in-progress: true
on:
workflow_dispatch:
inputs:
gosdk:
description: 'The version/branch of 0Chain GoSDK'
required: true
base:
description: the base branch to which PR needs to be raised
required: true
jobs:
create-pr:
runs-on: [arc-runner]
steps:
- name: Setup go 1.21
uses: actions/setup-go@v5
with:
go-version: '1.21'
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.base }}
- 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: ${{ github.event.inputs.base }}
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: guruhubb
labels: GoSDK