Skip to content

Commit

Permalink
Modify workflow to bump up version (#480)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yang-33 committed Jul 6, 2023
1 parent 086c1df commit b668a89
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/bump-minor-version.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Bump minor version and commit updated code
name: Bump minor version and commit updated code in branch

on:
workflow_dispatch
Expand All @@ -20,14 +20,19 @@ jobs:
python-version: '3.x'
- name: Install bump
run: pip install bump
- name: Bump minor version and Commit generated code
- name: Bump minor version and Commit generated code in branch
run: |
git config user.name github-actions
git config user.email github-actions@github.com
VERSION=$(bump -m -r linebot/__about__.py)
git checkout -b bump-version-to-$VERSION
python generate-code.py
git add .
git commit -m "Bump version to $VERSION"
git push origin master
git push origin bump-version-to-$VERSION
gh pr create -B ${{ github.ref_name }} --title "Bump version to $VERSION" --body "" --label "auto-generated-code"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit b668a89

Please sign in to comment.