diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 358174d..b01573c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -127,8 +127,14 @@ jobs: - name: Get current Fedora version id: labels + shell: bash run: | + set -eo pipefail ver=$(skopeo inspect docker://ghcr.io/ublue-os/${{ matrix.base_image_name }}${{ 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