From 6168c6ca50b72aa5304baa55b89cfd3671002a4d Mon Sep 17 00:00:00 2001 From: ADC1920 <99816220+ADC1920@users.noreply.github.com> Date: Mon, 9 Nov 2026 20:55:12 +0800 Subject: [PATCH] =?UTF-8?q?chore(ci):=20=E5=8D=87=E7=BA=A7=20GitHub=20Acti?= =?UTF-8?q?ons=20=E5=88=B0=20v7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 动因:CI 日志一直报 Node.js 20 弃用告警,四类 action 都还停在基于 node20 的大版本。 - actions/checkout v4 -> v7 - actions/setup-python v5 -> v7 - actions/setup-node v4 -> v7 - actions/upload-artifact v4 -> v7 兼容性:本仓库对这四个 action 只用基础参数(python-version、node-version、name/path/if-no-files-found),未启用 cache;v5-v7 的破坏性变更集中在 node24 运行时、node 自动缓存范围收窄、fork PR 的 checkout 拦截,均不涉及现有用法。 YAML 已本地解析校验(三个 job 结构完好)。 --- .github/workflows/skill-eval.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/skill-eval.yml b/.github/workflows/skill-eval.yml index d107153..7859769 100644 --- a/.github/workflows/skill-eval.yml +++ b/.github/workflows/skill-eval.yml @@ -38,11 +38,11 @@ jobs: name: 静态检查 runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 + - uses: actions/checkout@v7 + - uses: actions/setup-python@v7 with: python-version: "3.12" - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v7 with: node-version: "22" - name: frontmatter / 引用 / 路由覆盖 / 长度预算 / 占位符 / 密钥 @@ -61,8 +61,8 @@ jobs: if: github.event_name != 'schedule' runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - uses: actions/checkout@v7 + - uses: actions/setup-node@v7 with: node-version: "22" - name: 检查模型凭据 @@ -84,7 +84,7 @@ jobs: -o "$RUNNER_TEMP/routing.junit.xml" - name: 上传报告 if: always() - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: routing-report path: | @@ -98,8 +98,8 @@ jobs: if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - uses: actions/checkout@v7 + - uses: actions/setup-node@v7 with: node-version: "22" - name: 检查模型凭据 @@ -121,7 +121,7 @@ jobs: -o "$RUNNER_TEMP/quality.junit.xml" - name: 上传报告 if: always() - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: quality-report path: |