Skip to content

Commit 34c6f2b

Browse files
committed
NO-ISSUE Bump up version automatically
1 parent 49b7089 commit 34c6f2b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/diff-check.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,23 @@ jobs:
2020
python-version: '3.x'
2121
- name: Generate codes
2222
run: python generate-code.py
23+
- name: Install bump
24+
run: pip install bump
2325
- name: Mark if diff exists
2426
run: |
2527
diff=$(git --no-pager diff --name-only)
2628
echo "DIFF_IS_EMPTY=$([[ -z "$diff" ]] && echo 'true' || echo 'false')" >> $GITHUB_ENV
2729
echo "CURRENT_DATETIME=$(date +'%Y%m%d%H%M%S')" >> $GITHUB_ENV
30+
31+
## TODO: Enable merge change into master directly
2832
- name: Open pull request if generated code is not same as current one
2933
if: ${{ env.DIFF_IS_EMPTY != 'true' }}
3034
run: |
3135
git config user.name github-actions
3236
git config user.email github-actions@github.com
3337
git checkout -b update-diff-${{ env.CURRENT_DATETIME }}
38+
bump -m -r linebot/__about__.py
39+
python generate-code.py
3440
git add .
3541
git commit -m "Codes are generated by openapi"
3642
git push origin update-diff-${{ env.CURRENT_DATETIME }}

0 commit comments

Comments
 (0)