File tree Expand file tree Collapse file tree 2 files changed +33
-45
lines changed Expand file tree Collapse file tree 2 files changed +33
-45
lines changed Original file line number Diff line number Diff line change
1
+ name : Bump minor version and commit updated code
2
+
3
+ on :
4
+ workflow_dispatch
5
+
6
+ jobs :
7
+ build :
8
+ runs-on : ubuntu-latest
9
+
10
+ steps :
11
+ - name : Setup
12
+ uses : actions/checkout@v3
13
+ with :
14
+ submodules : recursive
15
+ - name : Update submodules
16
+ run : git submodule update --remote --recursive
17
+ - name : Set up Python
18
+ uses : actions/setup-python@v4
19
+ with :
20
+ python-version : ' 3.x'
21
+ - name : Install bump
22
+ run : pip install bump
23
+ - name : Bump minor version and Commit generated code
24
+ run : |
25
+ git config user.name github-actions
26
+ git config user.email github-actions@github.com
27
+ VERSION=$(bump -m -r linebot/__about__.py)
28
+ python generate-code.py
29
+ git add .
30
+ git commit -m "Bump version to $VERSION"
31
+ git push origin master
32
+ env :
33
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments