File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 1
- name : Bump minor version and commit updated code
1
+ name : Bump minor version and commit updated code in branch
2
2
3
3
on :
4
4
workflow_dispatch
@@ -20,14 +20,19 @@ jobs:
20
20
python-version : ' 3.x'
21
21
- name : Install bump
22
22
run : pip install bump
23
- - name : Bump minor version and Commit generated code
23
+ - name : Bump minor version and Commit generated code in branch
24
24
run : |
25
25
git config user.name github-actions
26
26
git config user.email github-actions@github.com
27
+
27
28
VERSION=$(bump -m -r linebot/__about__.py)
29
+ git checkout -b bump-version-to-$VERSION
30
+
28
31
python generate-code.py
29
32
git add .
30
33
git commit -m "Bump version to $VERSION"
31
- git push origin master
34
+
35
+ git push origin bump-version-to-$VERSION
36
+ gh pr create -B ${{ github.ref_name }} --title "Bump version to $VERSION" --body "" --label "auto-generated-code"
32
37
env :
33
38
GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments