
























@@ -126,7 +126,7 @@ jobs:
126126uses: actions/download-artifact@v8
127127with:
128128name: openclaw-npm-preflight-${{ inputs.tag }}
129-path: preflight-manifest
129+path: ${{ runner.temp }}/openclaw-npm-preflight-manifest
130130repository: ${{ github.repository }}
131131run-id: ${{ inputs.preflight_run_id }}
132132github-token: ${{ github.token }}
@@ -151,10 +151,11 @@ jobs:
151151EXPECTED_SHA: ${{ steps.ref.outputs.sha }}
152152run: |
153153 set -euo pipefail
154- manifest="preflight-manifest/preflight-manifest.json"
154+ preflight_dir="${RUNNER_TEMP}/openclaw-npm-preflight-manifest"
155+ manifest="${preflight_dir}/preflight-manifest.json"
155156 if [[ ! -f "$manifest" ]]; then
156157 echo "OpenClaw npm preflight manifest is missing." >&2
157- ls -la preflight-manifest >&2 || true
158+ ls -la "$preflight_dir" >&2 || true
158159 exit 1
159160 fi
160161 release_tag="$(jq -r '.releaseTag // ""' "$manifest")"
@@ -174,11 +175,11 @@ jobs:
174175 echo "Preflight manifest npm dist-tag mismatch: expected $RELEASE_NPM_DIST_TAG, got $npm_dist_tag" >&2
175176 exit 1
176177 fi
177- if [[ -z "$tarball_name" || ! -f "preflight-manifest/$tarball_name" ]]; then
178+ if [[ -z "$tarball_name" || ! -f "${preflight_dir}/${tarball_name}" ]]; then
178179 echo "Preflight manifest tarball is missing: $tarball_name" >&2
179180 exit 1
180181 fi
181- actual_tarball_sha256="$(sha256sum "preflight-manifest/$tarball_name" | awk '{print $1}')"
182+ actual_tarball_sha256="$(sha256sum "${preflight_dir}/${tarball_name}" | awk '{print $1}')"
182183 if [[ "$actual_tarball_sha256" != "$tarball_sha256" ]]; then
183184 echo "Preflight manifest tarball digest mismatch." >&2
184185 exit 1
@@ -222,6 +223,13 @@ jobs:
222223runs-on: ubuntu-latest
223224timeout-minutes: 60
224225steps:
226+ - name: Checkout release SHA
227+uses: actions/checkout@v6
228+with:
229+ref: ${{ needs.resolve_release_target.outputs.sha }}
230+fetch-depth: 1
231+persist-credentials: false
232+225233 - name: Dispatch publish workflows
226234env:
227235GH_TOKEN: ${{ github.token }}
@@ -336,8 +344,7 @@ jobs:
336344 changelog_file="${RUNNER_TEMP}/CHANGELOG.md"
337345 notes_file="${RUNNER_TEMP}/release-notes.md"
338346339- gh api "repos/${GITHUB_REPOSITORY}/contents/CHANGELOG.md?ref=${TARGET_SHA}" \
340- --jq '.content' | base64 --decode > "${changelog_file}"
347+ git show "${TARGET_SHA}:CHANGELOG.md" > "${changelog_file}"
341348 awk -v version="${notes_version}" '
342349 $0 == "## " version { in_section = 1; next }
343350 /^## / && in_section { exit }
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。