From 07a9e9773b55128ca599c69fd3c491ca4576c643 Mon Sep 17 00:00:00 2001 From: zhiyi Date: Thu, 10 Oct 2024 20:14:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/auto-generate-pac.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/auto-generate-pac.yml b/.github/workflows/auto-generate-pac.yml index 932ae4c..738c755 100644 --- a/.github/workflows/auto-generate-pac.yml +++ b/.github/workflows/auto-generate-pac.yml @@ -28,7 +28,7 @@ jobs: - name: Commit and push changes run: | last_commit_message=$(git log -1 --pretty=%B) - ${{ github.event_name }} == 'schedule' && commit_message="定期更新数据并生成 gfw.pac" || commit_message="自动生成 gfw.pac: $last_commit_message" + commit_message=$([[ "${{ github.event_name }}" == "schedule" ]] && echo "定期更新数据并生成 gfw.pac" || echo "自动生成 gfw.pac: $last_commit_message") git config --local user.email "action@github.com" git config --local user.name "GitHub Action" git add -A