mirror of
https://pagure.io/workstation-ostree-config.git
synced 2026-11-03 21:49:45 -09:00
generate-gitlab-ci: Update rawhide detection logic
This commit is contained in:
parent
831630e8b7
commit
13a0d948a6
1 changed files with 2 additions and 4 deletions
|
|
@ -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
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue