From 08816204037569fef9442045e0b1b40197b76e06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=99=E6=BC=A0=E4=B9=8B=E5=AD=90?= <7850715+maboloshi@users.noreply.github.com> Date: Sat, 25 Nov 2023 16:59:22 +0800 Subject: [PATCH] =?UTF-8?q?Fix:=20`main.user.js=5Fversion=5Fupdate.yaml`?= =?UTF-8?q?=E8=AF=AD=E6=B3=95=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 提交信息避免使用冒号 2. 自动触发时间改为北京时间每周一凌晨 Signed-off-by: 沙漠之子 <7850715+maboloshi@users.noreply.github.com> --- .github/workflows/main.user.js_version_update.yaml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.user.js_version_update.yaml b/.github/workflows/main.user.js_version_update.yaml index 3104b5b3b..d8f0cbffd 100644 --- a/.github/workflows/main.user.js_version_update.yaml +++ b/.github/workflows/main.user.js_version_update.yaml @@ -1,14 +1,13 @@ name: main.user.js version update on: schedule: - - cron: "0 0 * * 1" + - cron: "0 16 * * 0" workflow_dispatch: jobs: update_version: - if: ${{ !startsWith(github.event.client_payload.head_commit.message, 'main.user.js: Update to version') }} + if: ${{ !startsWith(github.event.client_payload.head_commit.message, 'main.user.js Update to version') }} runs-on: ubuntu-latest - steps: - name: Checkout repository uses: actions/checkout@v4 @@ -45,5 +44,5 @@ jobs: git config --local user.name "github-actions[bot]" git config --local user.email "github-actions[bot]@users.noreply.github.com" git add main.user.js - git commit -m "main.user.js: Update to version $(TZ='Asia/Shanghai' date +'%Y-%m-%d')" + git commit -m "main.user.js Update to version $(TZ='Asia/Shanghai' date +'%Y-%m-%d')" git push origin HEAD:${{ github.ref }}