File size: 1,027 Bytes
2825111 c99cdc5 2825111 |
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 40 41 |
name: Bump Version
on:
workflow_dispatch:
inputs:
bump:
type: choice
description: 'Bump major, minor, or patch version'
required: true
default: 'patch'
options:
- 'major'
- 'minor'
- 'patch'
jobs:
bump-version:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
token: ${{ secrets.WORKFLOW_GIT_ACCESS_TOKEN }}
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11
cache: pip
- name: Install Python libraries
run: |
pip install --user bumpver
- name: git config
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
- name: Bump version
run: bumpver update --commit --tag-commit --${{ github.event.inputs.bump }} --push
|