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:
parent
83cef3106f
commit
5eba65f097
2 changed files with 5 additions and 1 deletions
|
@ -11,3 +11,5 @@ mirror:
|
||||||
stage: triggers
|
stage: triggers
|
||||||
trigger:
|
trigger:
|
||||||
include: .gitlab/mirror.yml
|
include: .gitlab/mirror.yml
|
||||||
|
rules:
|
||||||
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
||||||
|
|
|
@ -17,8 +17,10 @@ pull-github:
|
||||||
script:
|
script:
|
||||||
- whoami; env
|
- 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 remove github 2>/dev/null || true
|
||||||
- git remote add github https://github.com/qurator-spk/dinglehopper.git
|
- git remote add github https://github.com/qurator-spk/dinglehopper.git
|
||||||
- git remote -v
|
- git remote -v
|
||||||
|
|
||||||
- git pull github master
|
- git pull github "$CI_COMMIT_BRANCH"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue