我有一个设置,我在存储库中有两个分支。
dev_software
和
dev_content
dev_content
设置为保存dev_content
的git子模块。
当内容开发人员推送到dev_content
时,我需要触发与软件开发人员推送到dev_software
时相同的构建过程。因此,我需要在每次推送时检查CI中的dev_software
。
怎么做?
答案 0 :(得分:0)
我找到了一条路:
在每个舞台上,将以下内容放在开头:
build_multilang:
stage: build
script:
- "git checkout dev_software"
- "git pull"
- <your other scripts here>