Skip to content

Merge pull request #81 from bitcoin-sv/dependabot/go_modules/github.c… #58

Merge pull request #81 from bitcoin-sv/dependabot/go_modules/github.c…

Merge pull request #81 from bitcoin-sv/dependabot/go_modules/github.c… #58

Workflow file for this run

name: bump-version
on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: release-please
id: release
uses: GoogleCloudPlatform/release-please-action@v3
with:
token: ${{ secrets.TOKEN }}
release-type: go
- name: Get created PR number
id: pr-number
if: steps.release.outputs.pr
uses: actions/github-script@v6
with:
result-encoding: string
script: |
const pr = ${{ steps.release.outputs.pr }};
return pr && pr.number
- name: Approve Release PR
if: steps.release.outputs.pr
run: gh pr review ${{ steps.pr-number.outputs.result }} --approve
env:
GH_TOKEN: ${{ github.token }}
- name: Merge Release PR
if: steps.release.outputs.pr
run: gh pr merge ${{ steps.pr-number.outputs.result }} --auto --rebase
env:
GH_TOKEN: ${{ secrets.TOKEN }}