File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 :
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments