From 0b066e8c2aaa6136807ac338389663b905e57ebb Mon Sep 17 00:00:00 2001 From: Y1fe1Zh0u Date: Tue, 21 Jul 2026 15:38:33 +0800 Subject: [PATCH] Keep release checkout on a supported Node runtime GitHub-hosted runners now force Node 20 actions onto Node 24. Upgrade both release jobs to checkout v7 while leaving the Clawith project Node configuration unchanged. Constraint: The release workflow creates branches, pull requests, tags, and releases when run live. Rejected: actions/checkout@v6 | v7 is the current GitHub-recommended stable major. Confidence: high Scope-risk: narrow Reversibility: clean Directive: This changes only the checkout action runtime; do not couple it to the project Node version. Tested: YAML parse and job assertions, repository-wide checkout reference scan, git diff --check. Not-tested: Live release workflow because it has release side effects. --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0a9bea6af..4fbca51b0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -46,7 +46,7 @@ jobs: steps: - name: Checkout source - uses: actions/checkout@v4 + uses: actions/checkout@v7 with: ref: ${{ github.ref_name }} fetch-depth: 0 @@ -467,7 +467,7 @@ jobs: if: github.event_name == 'pull_request' && github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'release/v') steps: - name: Checkout source - uses: actions/checkout@v4 + uses: actions/checkout@v7 with: ref: ${{ github.event.pull_request.base.ref }} fetch-depth: 0