-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (38 loc) · 1.33 KB
/
create-version-bump-PR.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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