我有一个 Github workflow 文件,其中包含一个看起来像这样的 checkout 操作:
name: Build project
on:
workflow_dispatch:
# Allows for manual build trigger
jobs:
buildForAllSupportedPlatforms:
name: Build for ${{ matrix.targetPlatform }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
submodules: true
这样做是合乎逻辑的,它使用类似 submodule update --init --force
的命令检查子模块。我的问题是 - 我如何使所有子模块在主分支上检出?