Skip to content

Generate release pull request #26

Generate release pull request

Generate release pull request #26

name: Generate release pull request
on:
workflow_dispatch:
jobs:
generate-pr:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.22
- 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@v7
with:
title: Release ${{ env.RELEASE_VERSION }}
branch: release/${{ env.RELEASE_VERSION }}
commit-message: Release ${{ env.RELEASE_VERSION }}