From 8351527aea07d4335973204407249020eba0120c Mon Sep 17 00:00:00 2001 From: Jerry Ma Date: Sat, 2 Apr 2022 18:45:17 +0800 Subject: [PATCH] add build id to auto-increment commit message --- .github/workflows/increment-build-number.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/increment-build-number.yml b/.github/workflows/increment-build-number.yml index 7379b468..a6b3812d 100644 --- a/.github/workflows/increment-build-number.yml +++ b/.github/workflows/increment-build-number.yml @@ -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