Skip to content

Commit cbcf079

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

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.github/workflows/check-links.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,17 @@ jobs:
3131
cache: npm
3232
cache-dependency-path: tmp/package-ci.json
3333

34-
- run: npm install --omit=optional
34+
- run: |
35+
npm install --omit=optional
36+
git restore package.json
37+
38+
- name: Git submodules properly pinned?
39+
run: |
40+
npm run seq pin:submodule
41+
echo "If the diff check below fails, then update .gitmodules by pinning the named git"
42+
echo "submodule(s); or undo the submodule update(s) if it happened by mistake."
43+
npm run _diff:fail
44+
3545
- run: npm run log:check:links
3646
continue-on-error: true
3747
- name: Any files need updating?

0 commit comments

Comments
 (0)