generate-gitlab-ci: Update rawhide detection logic

This commit is contained in:
Timothée Ravier 2026-04-14 00:22:32 +02:00
parent 831630e8b7
commit 13a0d948a6

View file

@ -17,11 +17,9 @@ variants=(
) )
branch="$(git rev-parse --abbrev-ref HEAD)" branch="$(git rev-parse --abbrev-ref HEAD)"
release="" release="$(rpm-ostree compose tree --print-only "silverblue.yaml" | jq -r '."mutate-os-release"')"
if [[ "${branch}" == "main" ]] || [[ -f "fedora-rawhide.repo" ]]; then if [[ "$(rpm-ostree compose tree --print-only "silverblue.yaml" | jq -r '.repos[]')" == "fedora-rawhide" ]]; then
release="rawhide" release="rawhide"
else
release="$(rpm-ostree compose tree --print-only --repo=repo silverblue.yaml | jq -r '."mutate-os-release"')"
fi fi
{ {