From e25ecac92f348a5ebae40c3018b2eeef3f3976f3 Mon Sep 17 00:00:00 2001 From: Kyle Gospodnetich Date: Sat, 17 Aug 2024 18:32:06 -0700 Subject: [PATCH] chore(ci): Fix syntax issue preventing builds --- .github/workflows/build.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5672ba93..1807d311 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -233,6 +233,22 @@ jobs: sudo podman image rm ${{ env.IMAGE_REGISTRY }}/akmods:${{ matrix.kernel_flavor}}-${{ matrix.fedora_version }} sudo podman image rm ${{ env.IMAGE_REGISTRY }}/akmods-nvidia:${{ matrix.kernel_flavor}}-${{ matrix.fedora_version }} + # Generate the previous image reference used by the Rechunker + - name: Generate previous reference + id: generate-prev-ref + shell: bash + run: | + if [ "${{ github.event.inputs.fresh-rechunk }}" == "true" ]; then + IMAGEREF="" + else + IMAGEREF="${{ steps.registry_case.outputs.lowercase }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}" + fi + + echo "ref=${IMAGEREF}" >> $GITHUB_OUTPUT + + echo "Generated the following:" + cat $GITHUB_OUTPUT + # Reprocess raw-img using rechunker which will delete it - name: Run Rechunker id: rechunk @@ -240,7 +256,7 @@ jobs: with: rechunk: 'ghcr.io/hhd-dev/rechunk:v0.8.3' ref: 'raw-img' - prev-ref: ${{ github.event.inputs.fresh-rechunk == 'true' && '' || "${{ steps.registry_case.outputs.lowercase }}/${{ env.IMAGE_NAME }}:stable" }} + prev-ref: ${{ steps.generate-prev-ref.outputs.ref }} version: '${{ steps.generate-version.outputs.tag }}' labels: | io.artifacthub.package.logo-url=https://raw.githubusercontent.com/ublue-os/bazzite/main/repo_content/logo.png