Update #88
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Submodule check | |
on: | |
push: | |
merge_group: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- # Only PRs where all the submodules are on the main branch of their respective repositories | |
# are allowed to merge to main. | |
# | |
# The script can be run locally to confirm that the submodules are on the main branch. | |
# | |
# Note, the main branch of submodule repositories have a name other than "main". | |
# For example: "master" or "develop". | |
name: Check submodules | |
env: | |
GH_TOKEN: ${{ github.token }} | |
run: ./scripts/ci/require-submodules-on-main-branch.sh |