1
0
Fork 0
mirror of https://github.com/qurator-spk/dinglehopper.git synced 2025-06-10 04:09:59 +02:00

🚧 GitLab CI Test: Trigger only on default branch (and do not hardcode it)

This commit is contained in:
Mike Gerber 2024-01-12 16:08:26 +01:00
parent 83cef3106f
commit 5eba65f097
2 changed files with 5 additions and 1 deletions

View file

@ -11,3 +11,5 @@ mirror:
stage: triggers
trigger:
include: .gitlab/mirror.yml
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH

View file

@ -17,8 +17,10 @@ pull-github:
script:
- whoami; env
- if [ -z "$CI_COMMIT_BRANCH" ]; then echo "Not on a branch" >&2; exit 3; fi
- git remote remove github 2>/dev/null || true
- git remote add github https://github.com/qurator-spk/dinglehopper.git
- git remote -v
- git pull github master
- git pull github "$CI_COMMIT_BRANCH"