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

master
Mike Gerber 4 months ago
parent 83cef3106f
commit 5eba65f097

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

@ -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"

Loading…
Cancel
Save