diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e633745..e02eb34 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -136,8 +136,13 @@ jobs: - name: Get current version id: labels + shell: bash run: | ver=$(skopeo inspect docker://ghcr.io/ublue-os/${{ matrix.image_name }}-main:${{ 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