Skip to content

Commit c7d6e8a

Browse files
committed
[CI] Detect unpinned git submodules in GH PR checks
1 parent 1b7ef72 commit c7d6e8a

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/check-links.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@v4
1313

14+
- name: Git submodules properly pinned?
15+
run: |
16+
npm run seq -- get:submodule pin:submodule
17+
echo "If the diff check below fails, then update .gitmodules by pinning the named git"
18+
echo "submodule(s); or undo the submodule update(s) if it happened by mistake."
19+
npm run _diff:fail
20+
1421
- name: Create NPM cache-hash input file
1522
run: |
1623
mkdir -p tmp

0 commit comments

Comments
 (0)