From c9ad8c1f0f38fa5f58f805e2d187d1c14e4b6bed Mon Sep 17 00:00:00 2001 From: Killian Delarue Date: Thu, 22 Aug 2024 15:07:30 +0200 Subject: [PATCH] Scripts: Allow soft-release in [create_debian_repo] --- scripts/ci/create_debian_repo.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/scripts/ci/create_debian_repo.sh b/scripts/ci/create_debian_repo.sh index fab832c68375..c2a9ef35b73c 100755 --- a/scripts/ci/create_debian_repo.sh +++ b/scripts/ci/create_debian_repo.sh @@ -92,9 +92,12 @@ else if [ "$CI_COMMIT_REF_NAME" = "master" ]; then TARGETDIR="public/$PREFIX/master/$DISTRIBUTION" else - echo "Cannot create a repository for a protected branch that \ - is not associated with a release tag or it's master" - exit 1 + if [ -n "${CI_COMMIT_TAG}" ]; then + TARGETDIR="public/$PREFIX/${CI_COMMIT_TAG}/$DISTRIBUTION" + else + echo "Cannot create a repository for a protected branch that is not associated to a tag or master" + exit 1 + fi fi fi fi -- GitLab