Skip to content

Commit

Permalink
[CI] Detect unpinned git submodules in GH PR checks
Browse files Browse the repository at this point in the history
  • Loading branch information
chalin committed Nov 18, 2024
1 parent 1b7ef72 commit cbcf079
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/check-links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,17 @@ jobs:
cache: npm
cache-dependency-path: tmp/package-ci.json

- run: npm install --omit=optional
- run: |
npm install --omit=optional
git restore package.json
- name: Git submodules properly pinned?
run: |
npm run seq pin:submodule
echo "If the diff check below fails, then update .gitmodules by pinning the named git"
echo "submodule(s); or undo the submodule update(s) if it happened by mistake."
npm run _diff:fail
- run: npm run log:check:links
continue-on-error: true
- name: Any files need updating?
Expand Down
2 changes: 1 addition & 1 deletion content-modules/opentelemetry-java-examples

0 comments on commit cbcf079

Please sign in to comment.