Skip to content

Commit 96f051e

Browse files
committed
Added bump-version GH Action
Signed-off-by: Trey <73353716+TreyWW@users.noreply.github.com>
1 parent 131582b commit 96f051e

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/bump-version.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Bump version
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
bump-type:
7+
description: 'Bump type'
8+
required: true
9+
default: 'patch'
10+
type: choice
11+
options:
12+
- major
13+
- minor
14+
- patch
15+
16+
jobs:
17+
build:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout the code
21+
uses: actions/checkout@v4
22+
23+
- name: Bump version
24+
id: bump
25+
uses: callowayproject/bump-my-version@master
26+
env:
27+
BUMPVERSION_TAG: "true"
28+
with:
29+
args: ${{ inputs.bump-type }}
30+
github-token: ${{ secrets.GH_TOKEN }}
31+
32+
- name: Check
33+
if: steps.bump.outputs.bumped == 'true'
34+
run: |
35+
echo "Version was bumped from ${{ steps.bump.outputs.previous-version }} to ${{ steps.bump.outputs.current-version }}!"

0 commit comments

Comments
 (0)