File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff 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 }}
You can’t perform that action at this time.
0 commit comments