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
22
33on :
44 workflow_dispatch
@@ -20,14 +20,19 @@ jobs:
2020 python-version : ' 3.x'
2121 - name : Install bump
2222 run : pip install bump
23- - name : Bump minor version and Commit generated code
23+ - name : Bump minor version and Commit generated code in branch
2424 run : |
2525 git config user.name github-actions
2626 git config user.email [email protected] 27+
2728 VERSION=$(bump -m -r linebot/__about__.py)
29+ git checkout -b bump-version-to-$VERSION
30+
2831 python generate-code.py
2932 git add .
3033 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"
3237 env :
3338 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments