Joshua Sundance Bailey commited on
Commit
9efb868
1 Parent(s): bc15c93

bumpver action

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