-
Notifications
You must be signed in to change notification settings - Fork 959
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create workflow to update minor version (#479)
- Loading branch information
Showing
2 changed files
with
33 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Bump minor version and commit updated code | ||
|
||
on: | ||
workflow_dispatch | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Setup | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- name: Update submodules | ||
run: git submodule update --remote --recursive | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.x' | ||
- name: Install bump | ||
run: pip install bump | ||
- name: Bump minor version and Commit generated code | ||
run: | | ||
git config user.name github-actions | ||
git config user.email github-actions@github.com | ||
VERSION=$(bump -m -r linebot/__about__.py) | ||
python generate-code.py | ||
git add . | ||
git commit -m "Bump version to $VERSION" | ||
git push origin master | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file was deleted.
Oops, something went wrong.