add build id to auto-increment commit message

This commit is contained in:
Jerry Ma
2022-04-02 18:45:17 +08:00
committed by GitHub
parent ddff663b0b
commit 8351527aea

View File

@@ -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