From 14e1d984e653fd2cc1241db60cf768b8ac398a6e Mon Sep 17 00:00:00 2001 From: GeWuYou <95328647+GeWuYou@users.noreply.github.com> Date: Sun, 1 Feb 2026 22:11:32 +0800 Subject: [PATCH] =?UTF-8?q?chore(workflow):=20=E7=A7=BB=E9=99=A4=E8=B7=B3?= =?UTF-8?q?=E8=BF=87=E6=A0=87=E8=AE=B0=E6=A3=80=E6=9F=A5=E5=B9=B6=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E4=BB=A3=E7=A0=81=E6=89=AB=E6=8F=8F=E5=AE=9A=E6=97=B6?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除了 GitHub 工作流中的跳过关键字检查步骤 - 将代码扫描定时任务从每周二凌晨4点41分改为每天凌晨2点执行 - 简化了工作流配置逻辑,移除了条件判断相关的代码块 --- .github/workflows/auto-tag.yml | 10 ---------- .github/workflows/codeql.yml | 4 ++-- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/.github/workflows/auto-tag.yml b/.github/workflows/auto-tag.yml index 472a80b..996d455 100644 --- a/.github/workflows/auto-tag.yml +++ b/.github/workflows/auto-tag.yml @@ -27,16 +27,6 @@ jobs: with: fetch-depth: 0 persist-credentials: false - - - name: Check for skip keyword - id: check_skip - run: | - LAST_COMMIT_MSG=$(git log -1 --pretty=format:"%B") - if [[ "$LAST_COMMIT_MSG" == *"[skip]"* ]] || [[ "$LAST_COMMIT_MSG" == *"[no tag]"* ]]; then - echo "skip_tag=true" >> $GITHUB_OUTPUT - else - echo "skip_tag=false" >> $GITHUB_OUTPUT - fi - name: Get next version if: steps.check_skip.outputs.skip_tag == 'false' diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 94a9aab..971ed2f 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -6,14 +6,14 @@ name: "CodeQL" # 在以下情况下触发工作流: # 1. 推送到main分支时 # 2. 针对main分支的拉取请求时 -# 3. 每周二凌晨4点41分定时执行 +# 3. 每天凌晨2点执行一次 on: push: branches: [ "main" ] pull_request: branches: [ "main" ] schedule: - - cron: '41 4 * * 2' + - cron: '0 2 * * *' jobs: # 分析任务配置