Generate release pull request #26
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |