Create Version Bump PR #7
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: Create Version Bump PR | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: 'You have to provide a version (e.g. 1.1.2)' | |
type: string | |
required: true | |
base: | |
description: 'You can provide the branch name on which the version bump commit is created (defaults to main)' | |
default: 'main' | |
type: string | |
required: false | |
jobs: | |
bump-version: | |
runs-on: ubuntu-22.04 | |
env: | |
BRANCH: 'bump-version-${{ github.event.inputs.version }}' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.inputs.base }} | |
- name: Create Version Bump Commit | |
run: | | |
./scripts/bump_version.sh ${{ github.event.inputs.version }} | |
- name: Create Version Bump PR | |
uses: peter-evans/create-pull-request@v7 | |
with: | |
committer: ${{ github.actor }} <github-actions[bot]@users.noreply.github.com> | |
commit-message: 'Bump version to ${{ github.event.inputs.version }}' | |
title: 'Bump version to ${{ github.event.inputs.version }}' | |
body: 'This PR bumps the version to ${{ github.event.inputs.version }}' | |
branch: '${BRANCH}' | |
base: ${{ github.event.inputs.base }} | |
labels: 'version-bump' | |
assignees: 'alexzurbonsen' | |
signoff: true |