mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-21 15:45:36 +08:00
add build id to auto-increment commit message
This commit is contained in:
3
.github/workflows/increment-build-number.yml
vendored
3
.github/workflows/increment-build-number.yml
vendored
@@ -23,8 +23,9 @@ jobs:
|
||||
|
||||
- name: Commit change
|
||||
run: |
|
||||
BUILD_ID=$(cat src/ZM/ConsoleApplication.php | grep "VERSION_ID = " | sed 's/[^0-9]//g')
|
||||
git config --global user.name 'Github Build Bot'
|
||||
git config --global user.email 'noreply@github.com'
|
||||
git add src/ZM/ConsoleApplication.php
|
||||
git commit -m "increment build number"
|
||||
git commit -m "increment build number (build $BUILD_ID)"
|
||||
git push
|
||||
|
||||
Reference in New Issue
Block a user