diff --git a/.github/workflows/openclaw-cross-os-release-checks-reusable.yml b/.github/workflows/openclaw-cross-os-release-checks-reusable.yml index d055da80423..a9d9a47c591 100644 --- a/.github/workflows/openclaw-cross-os-release-checks-reusable.yml +++ b/.github/workflows/openclaw-cross-os-release-checks-reusable.yml @@ -347,12 +347,19 @@ jobs: --source-dir source \ --output-dir "${OUTPUT_DIR}" - - name: Download provided candidate artifact - if: inputs.candidate_artifact_name != '' + - name: Download current-run candidate artifact + if: inputs.candidate_artifact_name != '' && inputs.candidate_artifact_run_id == '' uses: actions/download-artifact@v8 with: name: ${{ inputs.candidate_artifact_name }} - run-id: ${{ inputs.candidate_artifact_run_id || github.run_id }} + path: ${{ runner.temp }}/openclaw-cross-os-release-checks/prepare/package + + - name: Download previous-run candidate artifact + if: inputs.candidate_artifact_name != '' && inputs.candidate_artifact_run_id != '' + uses: actions/download-artifact@v8 + with: + name: ${{ inputs.candidate_artifact_name }} + run-id: ${{ inputs.candidate_artifact_run_id }} github-token: ${{ github.token }} path: ${{ runner.temp }}/openclaw-cross-os-release-checks/prepare/package diff --git a/.github/workflows/openclaw-release-checks.yml b/.github/workflows/openclaw-release-checks.yml index 347577860b5..d1d2c6e1087 100644 --- a/.github/workflows/openclaw-release-checks.yml +++ b/.github/workflows/openclaw-release-checks.yml @@ -314,7 +314,6 @@ jobs: provider: ${{ needs.resolve_target.outputs.provider }} mode: ${{ needs.resolve_target.outputs.mode }} candidate_artifact_name: ${{ needs.prepare_release_package.outputs.artifact_name }} - candidate_artifact_run_id: ${{ github.run_id }} candidate_file_name: openclaw-current.tgz candidate_version: ${{ needs.prepare_release_package.outputs.package_version }} candidate_source_sha: ${{ needs.prepare_release_package.outputs.source_sha }} @@ -408,7 +407,6 @@ jobs: include_live_suites: false release_test_profile: ${{ needs.resolve_target.outputs.release_profile }} package_artifact_name: ${{ needs.prepare_release_package.outputs.artifact_name }} - package_artifact_run_id: ${{ github.run_id }} secrets: *live_e2e_release_secrets package_acceptance_release_checks: @@ -424,7 +422,6 @@ jobs: with: workflow_ref: ${{ github.ref_name }} source: artifact - artifact_run_id: ${{ github.run_id }} artifact_name: ${{ needs.prepare_release_package.outputs.artifact_name }} package_sha256: ${{ needs.prepare_release_package.outputs.package_sha256 }} suite_profile: custom diff --git a/.github/workflows/package-acceptance.yml b/.github/workflows/package-acceptance.yml index a2f8652d01b..567053897c1 100644 --- a/.github/workflows/package-acceptance.yml +++ b/.github/workflows/package-acceptance.yml @@ -282,8 +282,15 @@ jobs: install-bun: ${{ inputs.source == 'ref' && 'true' || 'false' }} install-deps: "false" - - name: Download package artifact input - if: inputs.source == 'artifact' + - name: Download current-run package artifact input + if: inputs.source == 'artifact' && inputs.artifact_run_id == '' + uses: actions/download-artifact@v8 + with: + name: ${{ inputs.artifact_name }} + path: .artifacts/package-candidate-input + + - name: Download previous-run package artifact input + if: inputs.source == 'artifact' && inputs.artifact_run_id != '' env: GH_TOKEN: ${{ github.token }} ARTIFACT_RUN_ID: ${{ inputs.artifact_run_id }} @@ -291,10 +298,6 @@ jobs: shell: bash run: | set -euo pipefail - if [[ -z "${ARTIFACT_RUN_ID// }" ]]; then - echo "artifact_run_id is required when source=artifact." >&2 - exit 1 - fi if [[ -z "${ARTIFACT_NAME// }" ]]; then echo "artifact_name is required when source=artifact." >&2 exit 1