diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 20bd0d6fd35..b3704937c52 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -138,8 +138,14 @@ jobs: - name: Get Current Fedora Version id: labels + shell: bash run: | + set -eo pipefail ver=$(skopeo inspect docker://ghcr.io/ublue-os/silverblue-${{ matrix.image_flavor }}:${{ matrix.major_version }} | jq -r '.Labels["org.opencontainers.image.version"]') + if [ -z "$ver" ] || [ "null" = "$ver" ]; then + echo "inspected image version must not be empty or null" + exit 1 + fi echo "VERSION=$ver" >> $GITHUB_OUTPUT # Build metadata