diff options
| author | tranch <tranch.xiao@gmail.com> | 2026-07-23 16:47:13 +0800 |
|---|---|---|
| committer | tranch <tranch.xiao@gmail.com> | 2026-07-23 16:47:13 +0800 |
| commit | 34392b54532ae98e21f983e265525cd637c125fb (patch) | |
| tree | 83c104e9a5868143df55ef417abd6f06a8aa17f3 /.github/workflows | |
| parent | 667f7c530d0c0b1b424b8501d124ec082ce77e7d (diff) | |
| download | AeroCore-OS-34392b54532ae98e21f983e265525cd637c125fb.tar.gz AeroCore-OS-34392b54532ae98e21f983e265525cd637c125fb.zip | |
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.
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/build-live-installer.yml | 17 |
1 files changed, 17 insertions, 0 deletions
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}" |
