From a780ff9a2b953a661ff36de9cc2d78899a387f42 Mon Sep 17 00:00:00 2001 From: zhiyi Date: Thu, 3 Oct 2024 16:13:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E6=94=B9auto-release?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/auto-release.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index b1336e5..be4d16d 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -25,11 +25,12 @@ jobs: id: commit_count env: GH_TOKEN: ${{ secrets.PERSONAL_TOKEN }} + TZ: "Asia/Shanghai" run: | today=$(date +%Y%m%d) - commit_count=$(git log --since="$today 00:00:00" --until="$today 23:59:59" --pretty=format: --name-only | grep -c '^gfw.pac$') + commit_count=$(git log --date=local --since="$today 00:00:00" --until="$today 23:59:59" --pretty=format: --name-only | grep -c '^gfw.pac$') echo "COMMIT_COUNT=$commit_count" >> $GITHUB_ENV - echo "RELEASE_NAME=v$(TZ='Asia/Shanghai' date +%Y%m%d).$commit_count" >> $GITHUB_ENV + echo "RELEASE_NAME=v$(date +%Y%m%d).$commit_count" >> $GITHUB_ENV - name: Create Tag id: create_tag