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)"
|
||||
release=""
|
||||
if [[ "${branch}" == "main" ]] || [[ -f "fedora-rawhide.repo" ]]; then
|
||||
release="$(rpm-ostree compose tree --print-only "silverblue.yaml" | jq -r '."mutate-os-release"')"
|
||||
if [[ "$(rpm-ostree compose tree --print-only "silverblue.yaml" | jq -r '.repos[]')" == "fedora-rawhide" ]]; then
|
||||
release="rawhide"
|
||||
else
|
||||
release="$(rpm-ostree compose tree --print-only --repo=repo silverblue.yaml | jq -r '."mutate-os-release"')"
|
||||
fi
|
||||
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue