generated from narumiruna/python-template
-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (34 loc) · 1022 Bytes
/
bump-version.yml
File metadata and controls
36 lines (34 loc) · 1022 Bytes
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
name: Bump Version
on:
workflow_dispatch:
inputs:
bump-type:
description: "Bump type"
required: true
default: "patch"
type: choice
options:
- major
- minor
- patch
jobs:
bump-version:
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v6
- uses: astral-sh/setup-uv@v7
- name: Bump version
id: bump
uses: callowayproject/bump-my-version@master
env:
BUMPVERSION_TAG: "true"
with:
args: ${{ inputs.bump-type }}
# Create a personal access token https://github.com/settings/tokens
# Add your role to bypass list in the branch protection settings
github-token: ${{ secrets.GH_TOKEN }}
- name: Check
if: steps.bump.outputs.bumped == 'true'
run: |
echo "Version was bumped from ${{ steps.bump.outputs.previous-version }} to ${{ steps.bump.outputs.current-version }}!"