-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add post release version bumper (#2053)
- Loading branch information
1 parent
9a83b4b
commit a443405
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Bump version after release | ||
|
||
# Run when release is published, or manually triggered | ||
on: | ||
release: | ||
types: [published] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
bump: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Bump version | ||
id: bump | ||
uses: alexweininger/bump-prerelease-version@v0.1.1 | ||
|
||
- name: Create pull request | ||
uses: peter-evans/create-pull-request@v4 | ||
with: | ||
title: ${{ env.MESSAGE }} | ||
body: Automatically created by ${{ env.RUN_LINK }} | ||
commit-message: ${{ env.MESSAGE }} | ||
branch: bot/bump-${{ steps.bump.outputs.new-version }} | ||
base: main | ||
author: GitHub <noreply@github.com> | ||
env: | ||
RUN_LINK: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} | ||
MESSAGE: Bump version after release |