Skip to content

Commit cb3f838

Browse files
Fix submodules;
1 parent 07a4675 commit cb3f838

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

.github/workflows/build-baremetal.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ jobs:
99
- uses: actions/checkout@v4.2.2
1010
with:
1111
submodules: 'recursive'
12+
fetch-depth: 1
13+
- name: Force Submodules
14+
run: |
15+
pwd
16+
ls -a
17+
git status
18+
git submodule update --remote --merge
19+
git submodule foreach 'git checkout $(git config -f $toplevel/.gitmodules submodule.$name.branch || echo main)'
1220
- name: Install Packages and Build
1321
uses: actions/setup-node@v4.1.0
1422
with:

.github/workflows/build-docker.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,12 @@ jobs:
136136
with:
137137
fetch-depth: 1
138138
submodules: 'recursive'
139-
139+
- name: Force Submodules
140+
if: inputs.context-repository
141+
run: |
142+
git submodule init
143+
git submodule update --remote --merge
144+
git submodule foreach 'git checkout $(git config -f $toplevel/.gitmodules submodule.$name.branch || echo main)'
140145
- name: Checkout external context
141146
uses: actions/checkout@v4.2.2
142147
if: inputs.context-repository

0 commit comments

Comments
 (0)