Add submodule pin check to CI #1
Workflow file for this run
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: Merge Checks | |
on: | |
pull_request: | |
branches: [ master ] | |
types: [synchronize, opened, reopened, labeled, unlabeled] | |
jobs: | |
submodule-pin-check: | |
name: Submodule Pin Check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check all submodules are under origin/HEAD | |
run: git submodule foreach git merge-base --is-ancestor HEAD origin/HEAD | |