Yaml Gitlab CI:签出推送到的分支以外的其他分支

Yaml Gitlab CI:签出推送到的分支以外的其他分支,yaml,gitlab-ci,Yaml,Gitlab Ci,我在一个存储库中有两个分支 开发软件和 开发内容 dev\u content设置为保存dev\u content的git子模块 当内容开发者推到devu content时,我需要触发与软件开发者推到devu software时相同的构建过程。因此,每次推送时,我都需要在CI中签出dev_software 怎么做?我找到了一种方法: 在每个阶段的开头都应包括以下内容: build_multilang: stage: build script: - "git checkout dev

我在一个存储库中有两个分支

开发软件
开发内容

dev\u content
设置为保存
dev\u content
的git子模块

当内容开发者推到
devu content
时,我需要触发与软件开发者推到
devu software
时相同的构建过程。因此,每次推送时,我都需要在CI中签出
dev_software

怎么做?

我找到了一种方法:

在每个阶段的开头都应包括以下内容:

build_multilang:
  stage: build
  script:
    - "git checkout dev_software"
    - "git pull"
    - <your other scripts here>
build\u multilang:
阶段:建造
脚本:
-“git签出开发软件”
-“git pull”
-