From fccf2a6b65c0eb0e939a5dbd516a7ff723b915bb Mon Sep 17 00:00:00 2001 From: "Michael N. Lipp" Date: Sat, 26 Jul 2025 22:43:45 +0200 Subject: [PATCH] Fix branch evaluation. --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7dff899..b7b04f0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -24,7 +24,7 @@ stages: - "*/build" before_script: - echo -n $CI_REGISTRY_PASSWORD | podman login -u "$CI_REGISTRY_USER" --password-stdin $CI_REGISTRY - - git switch $(git branch -r --sort="authordate" --contains $CI_COMMIT_SHA | head -1 | sed -e 's#[^/]*/##') + - git switch $(git branch -r --sort="authordate" --contains $CI_COMMIT_SHA | head -1 | sed -e 's#.*/##') - git pull - git reset --hard $CI_COMMIT_SHA