ci: use same-run release package artifacts · openclaw/openclaw@2d53b49
steipete
·
2026-04-29
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -347,12 +347,19 @@ jobs:
|
347 | 347 | --source-dir source \ |
348 | 348 | --output-dir "${OUTPUT_DIR}" |
349 | 349 | |
350 | | - - name: Download provided candidate artifact |
351 | | -if: inputs.candidate_artifact_name != '' |
| 350 | + - name: Download current-run candidate artifact |
| 351 | +if: inputs.candidate_artifact_name != '' && inputs.candidate_artifact_run_id == '' |
| 352 | +uses: actions/download-artifact@v8 |
| 353 | +with: |
| 354 | +name: ${{ inputs.candidate_artifact_name }} |
| 355 | +path: ${{ runner.temp }}/openclaw-cross-os-release-checks/prepare/package |
| 356 | + |
| 357 | + - name: Download previous-run candidate artifact |
| 358 | +if: inputs.candidate_artifact_name != '' && inputs.candidate_artifact_run_id != '' |
352 | 359 | uses: actions/download-artifact@v8 |
353 | 360 | with: |
354 | 361 | name: ${{ inputs.candidate_artifact_name }} |
355 | | -run-id: ${{ inputs.candidate_artifact_run_id || github.run_id }} |
| 362 | +run-id: ${{ inputs.candidate_artifact_run_id }} |
356 | 363 | github-token: ${{ github.token }} |
357 | 364 | path: ${{ runner.temp }}/openclaw-cross-os-release-checks/prepare/package |
358 | 365 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -314,7 +314,6 @@ jobs:
|
314 | 314 | provider: ${{ needs.resolve_target.outputs.provider }} |
315 | 315 | mode: ${{ needs.resolve_target.outputs.mode }} |
316 | 316 | candidate_artifact_name: ${{ needs.prepare_release_package.outputs.artifact_name }} |
317 | | -candidate_artifact_run_id: ${{ github.run_id }} |
318 | 317 | candidate_file_name: openclaw-current.tgz |
319 | 318 | candidate_version: ${{ needs.prepare_release_package.outputs.package_version }} |
320 | 319 | candidate_source_sha: ${{ needs.prepare_release_package.outputs.source_sha }} |
@@ -408,7 +407,6 @@ jobs:
|
408 | 407 | include_live_suites: false |
409 | 408 | release_test_profile: ${{ needs.resolve_target.outputs.release_profile }} |
410 | 409 | package_artifact_name: ${{ needs.prepare_release_package.outputs.artifact_name }} |
411 | | -package_artifact_run_id: ${{ github.run_id }} |
412 | 410 | secrets: *live_e2e_release_secrets |
413 | 411 | |
414 | 412 | package_acceptance_release_checks: |
@@ -424,7 +422,6 @@ jobs:
|
424 | 422 | with: |
425 | 423 | workflow_ref: ${{ github.ref_name }} |
426 | 424 | source: artifact |
427 | | -artifact_run_id: ${{ github.run_id }} |
428 | 425 | artifact_name: ${{ needs.prepare_release_package.outputs.artifact_name }} |
429 | 426 | package_sha256: ${{ needs.prepare_release_package.outputs.package_sha256 }} |
430 | 427 | suite_profile: custom |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -282,19 +282,22 @@ jobs:
|
282 | 282 | install-bun: ${{ inputs.source == 'ref' && 'true' || 'false' }} |
283 | 283 | install-deps: "false" |
284 | 284 | |
285 | | - - name: Download package artifact input |
286 | | -if: inputs.source == 'artifact' |
| 285 | + - name: Download current-run package artifact input |
| 286 | +if: inputs.source == 'artifact' && inputs.artifact_run_id == '' |
| 287 | +uses: actions/download-artifact@v8 |
| 288 | +with: |
| 289 | +name: ${{ inputs.artifact_name }} |
| 290 | +path: .artifacts/package-candidate-input |
| 291 | + |
| 292 | + - name: Download previous-run package artifact input |
| 293 | +if: inputs.source == 'artifact' && inputs.artifact_run_id != '' |
287 | 294 | env: |
288 | 295 | GH_TOKEN: ${{ github.token }} |
289 | 296 | ARTIFACT_RUN_ID: ${{ inputs.artifact_run_id }} |
290 | 297 | ARTIFACT_NAME: ${{ inputs.artifact_name }} |
291 | 298 | shell: bash |
292 | 299 | run: | |
293 | 300 | set -euo pipefail |
294 | | - if [[ -z "${ARTIFACT_RUN_ID// }" ]]; then |
295 | | - echo "artifact_run_id is required when source=artifact." >&2 |
296 | | - exit 1 |
297 | | - fi |
298 | 301 | if [[ -z "${ARTIFACT_NAME// }" ]]; then |
299 | 302 | echo "artifact_name is required when source=artifact." >&2 |
300 | 303 | exit 1 |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。