Skip to content

Generate release pull request #19

Generate release pull request

Generate release pull request #19

name: Generate release pull request
on:
workflow_dispatch:
jobs:
generate-pr:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 1.19
- name: Batch and merge
run: |
go run main.go batch auto
go run main.go merge
echo RELEASE_VERSION=$(go run main.go latest) >> $GITHUB_ENV
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
title: Release ${{ env.RELEASE_VERSION }}
branch: release/${{ env.RELEASE_VERSION }}
commit-message: Release ${{ env.RELEASE_VERSION }}