Joshua Sundance Bailey commited on
Commit
2825111
1 Parent(s): d42ed97

Create bumpver.yml

Browse files
Files changed (1) hide show
  1. .github/workflows/bumpver.yml +36 -0
.github/workflows/bumpver.yml ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Bump Version
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ inputs:
6
+ bump:
7
+ type: choice
8
+ description: 'Bump major, minor, or patch version'
9
+ required: true
10
+ default: 'patch'
11
+ options:
12
+ - 'major'
13
+ - 'minor'
14
+ - 'patch'
15
+
16
+ jobs:
17
+ bump-version:
18
+ runs-on: ubuntu-latest
19
+ permissions:
20
+ contents: write
21
+ steps:
22
+ - name: Checkout code
23
+ uses: actions/checkout@v4
24
+ with:
25
+ token: ${{ secrets.WORKFLOW_GIT_ACCESS_TOKEN }}
26
+ fetch-depth: 0
27
+ - name: Set up Python
28
+ uses: actions/setup-python@v4
29
+ with:
30
+ python-version: 3.11
31
+ cache: pip
32
+ - name: Install Python libraries
33
+ run: |
34
+ pip install --user bumpver
35
+ - name: Bump version
36
+ run: bumpver update --commit --tag-commit --${{ github.event.inputs.bump }} --push