From 3c86b459d129f3303d8fc9cf236f79d1536d120d Mon Sep 17 00:00:00 2001 From: tranch Date: Thu, 23 Jul 2026 16:47:13 +0800 Subject: Fix live installer ISO path Normalize the path reported by Titanoboa before checksum and upload steps so artifacts misplaced under the action directory remain usable. Also enable pipefail so checksum failures are not hidden by tee. Verified with YAML parsing, git diff checks, and local path simulation. --- .github/workflows/build-live-installer.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to '.github/workflows/build-live-installer.yml') diff --git a/.github/workflows/build-live-installer.yml b/.github/workflows/build-live-installer.yml index 4b8cb62..1f57edd 100644 --- a/.github/workflows/build-live-installer.yml +++ b/.github/workflows/build-live-installer.yml @@ -105,8 +105,25 @@ jobs: image-ref: localhost/aerocore-live-payload:latest iso-dest: ${{ github.workspace }}/output/aerocore-os-${{ env.ISO_FILE_TAG }}-amd64.iso + - name: Normalize ISO output path + shell: bash + env: + GENERATED_ISO: ${{ steps.build.outputs.iso-dest }} + EXPECTED_ISO: ${{ github.workspace }}/output/aerocore-os-${{ env.ISO_FILE_TAG }}-amd64.iso + run: | + if [[ ! -f "${GENERATED_ISO}" ]]; then + echo "::error::Generated ISO does not exist at ${GENERATED_ISO}" + exit 1 + fi + if [[ "${GENERATED_ISO}" != "${EXPECTED_ISO}" ]]; then + mkdir -p "$(dirname "${EXPECTED_ISO}")" + mv "${GENERATED_ISO}" "${EXPECTED_ISO}" + fi + - name: Display checksum + shell: bash run: | + set -o pipefail iso_path="output/aerocore-os-${ISO_FILE_TAG}-amd64.iso" checksum_path="${iso_path}-CHECKSUM" sha256sum "${iso_path}" | tee "${checksum_path}" -- cgit v1.2.3