Skip to content

Commit b668a89

Browse files
authored
Modify workflow to bump up version (#480)
1 parent 086c1df commit b668a89

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/bump-minor-version.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Bump minor version and commit updated code
1+
name: Bump minor version and commit updated code in branch
22

33
on:
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 github-actions@github.com
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 }}

0 commit comments

Comments
 (0)