File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -347,12 +347,19 @@ jobs:
347347 --source-dir source \
348348 --output-dir "${OUTPUT_DIR}"
349349
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 != ''
352359 uses : actions/download-artifact@v8
353360 with :
354361 name : ${{ inputs.candidate_artifact_name }}
355- run-id : ${{ inputs.candidate_artifact_run_id || github.run_id }}
362+ run-id : ${{ inputs.candidate_artifact_run_id }}
356363 github-token : ${{ github.token }}
357364 path : ${{ runner.temp }}/openclaw-cross-os-release-checks/prepare/package
358365
Original file line number Diff line number Diff line change @@ -314,7 +314,6 @@ jobs:
314314 provider : ${{ needs.resolve_target.outputs.provider }}
315315 mode : ${{ needs.resolve_target.outputs.mode }}
316316 candidate_artifact_name : ${{ needs.prepare_release_package.outputs.artifact_name }}
317- candidate_artifact_run_id : ${{ github.run_id }}
318317 candidate_file_name : openclaw-current.tgz
319318 candidate_version : ${{ needs.prepare_release_package.outputs.package_version }}
320319 candidate_source_sha : ${{ needs.prepare_release_package.outputs.source_sha }}
@@ -408,7 +407,6 @@ jobs:
408407 include_live_suites : false
409408 release_test_profile : ${{ needs.resolve_target.outputs.release_profile }}
410409 package_artifact_name : ${{ needs.prepare_release_package.outputs.artifact_name }}
411- package_artifact_run_id : ${{ github.run_id }}
412410 secrets : *live_e2e_release_secrets
413411
414412 package_acceptance_release_checks :
@@ -424,7 +422,6 @@ jobs:
424422 with :
425423 workflow_ref : ${{ github.ref_name }}
426424 source : artifact
427- artifact_run_id : ${{ github.run_id }}
428425 artifact_name : ${{ needs.prepare_release_package.outputs.artifact_name }}
429426 package_sha256 : ${{ needs.prepare_release_package.outputs.package_sha256 }}
430427 suite_profile : custom
Original file line number Diff line number Diff line change @@ -282,19 +282,22 @@ jobs:
282282 install-bun : ${{ inputs.source == 'ref' && 'true' || 'false' }}
283283 install-deps : " false"
284284
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 != ''
287294 env :
288295 GH_TOKEN : ${{ github.token }}
289296 ARTIFACT_RUN_ID : ${{ inputs.artifact_run_id }}
290297 ARTIFACT_NAME : ${{ inputs.artifact_name }}
291298 shell : bash
292299 run : |
293300 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
298301 if [[ -z "${ARTIFACT_NAME// }" ]]; then
299302 echo "artifact_name is required when source=artifact." >&2
300303 exit 1
You can’t perform that action at this time.
0 commit comments