Another attempt to find the branch.

This commit is contained in:
Michael Lipp 2024-06-23 21:41:00 +02:00
parent 8b83a0cbc8
commit e994fa1543

View file

@ -24,7 +24,7 @@ stages:
- "*/build" - "*/build"
before_script: before_script:
- echo -n $CI_REGISTRY_PASSWORD | podman login -u "$CI_REGISTRY_USER" --password-stdin $CI_REGISTRY - echo -n $CI_REGISTRY_PASSWORD | podman login -u "$CI_REGISTRY_USER" --password-stdin $CI_REGISTRY
- git switch $CI_COMMIT_BRANCH - git switch $(git branch -r --contains $CI_COMMIT_SHA | sed -e 's#[^/]*/##')
- git pull - git pull
- git reset --hard $CI_COMMIT_SHA - git reset --hard $CI_COMMIT_SHA