github.com/0chain/gosdk@v1.17.11/.github/workflows/sdk-release.yml (about) 1 name: GoSDK Release 2 3 concurrency: 4 group: "sdk-${{ github.ref }}" 5 cancel-in-progress: true 6 7 on: 8 push: 9 branches: [ master, staging, qa, sprint-*] 10 workflow_dispatch: 11 inputs: 12 version: 13 description: '0Chain SDK version' 14 required: true 15 base: 16 description: the target branch to which PRs should be raised 17 default: sprint-1.11 18 required: true 19 20 env: 21 ACTIONS_ALLOW_UNSECURE_COMMANDS: true 22 23 jobs: 24 25 release: 26 name: sdk-release 27 runs-on: [self-hosted, build] 28 steps: 29 - name: start to create pr 30 run: | 31 echo "GoSDK & WebAssembly SDK should be upgraded" 32 33 create-pr: 34 name: create-pr 35 strategy: 36 fail-fast: false 37 max-parallel: 1 38 matrix: 39 repo: [0box, 0dns, zwalletcli, zboxcli, blobber, zs3server, s3-migration, token_bridge_authserver ] 40 needs: [ release ] 41 runs-on: [self-hosted, build] 42 steps: 43 - name: Extract branch or version name 44 shell: bash 45 run: | 46 GITHUB_REF=$(echo $GITHUB_REF | sed -e "s#refs/heads/##g") 47 echo $GITHUB_REF 48 echo ${{ github.event_name }} 49 echo "branch=${{ github.event_name == 'workflow_dispatch' && github.event.inputs.version || '$GITHUB_REF' }}" >> $GITHUB_ENV 50 echo "base=${{ github.event_name == 'workflow_dispatch' && github.event.inputs.base || '$GITHUB_REF' }}" >> $GITHUB_ENV 51 id: extract_branch 52 53 - name: Create PR on ${{ matrix.repo }} 54 uses: convictional/trigger-workflow-and-wait@v1.6.1 55 with: 56 owner: 0chain 57 repo: ${{ matrix.repo }} 58 ref: staging 59 github_token: ${{ secrets.GOSDK }} 60 workflow_file_name: gosdk.yml 61 client_payload: '{"gosdk": "${{ env.branch }}", "base": "${{ env.base }}"}' 62 propagate_failure: true 63 trigger_workflow: true 64 wait_workflow: true