File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ name : Bump version
3
+
4
+ on :
5
+ push :
6
+ branches :
7
+ - master
8
+
9
+ jobs :
10
+ bump :
11
+ if : " !contains(github.event.head_commit.message, 'bump')"
12
+ runs-on : ubuntu-latest
13
+ strategy :
14
+ matrix :
15
+ python-version : ['3.x']
16
+ steps :
17
+ - name : Check out
18
+ uses : actions/checkout@v2
19
+ with :
20
+ token : ${{ secrets.PERSONAL_ACCESS_TOKEN }}
21
+ fetch-depth : 0
22
+ - name : Set up Python ${{ matrix.python-version }}
23
+ uses : actions/setup-python@v1
24
+ with :
25
+ python-version : ${{ matrix.python-version }}
26
+ - name : Install dependencies
27
+ run : |
28
+ python --version
29
+ python -m pip install -U commitizen
30
+ - name : Configure repo
31
+ run : |
32
+ git config --local user.email "[email protected] "
33
+ git config --local user.name "GitHub Action"
34
+ git pull origin master --tags
35
+ - name : Create bump
36
+ run : |
37
+ cz bump --yes
38
+ git tag
39
+ - name : Push changes
40
+ uses : Woile/github-push-action@master
41
+ with :
42
+ github_token : ${{ secrets.PERSONAL_ACCESS_TOKEN }}
43
+ tags : " true"
You can’t perform that action at this time.
0 commit comments