File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed
Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change 1616 uses : actions/checkout@v4
1717 with :
1818 fetch-depth : 0
19- submodules : " recursive"
19+ # submodules: "recursive"
20+
21+ - name : Safe submodule initialization
22+ run : |
23+ echo "Checking for submodules..."
24+ if [ -f .gitmodules ]; then
25+ if [ -s .gitmodules ]; then
26+ echo "Initializing submodules..."
27+ if git submodule sync --recursive 2>/dev/null; then
28+ git submodule update --init --force --recursive || {
29+ echo "Warning: Some submodules failed to initialize, continuing anyway..."
30+ }
31+ else
32+ echo "Warning: Submodule sync failed, continuing without submodules..."
33+ fi
34+ else
35+ echo ".gitmodules exists but is empty, skipping submodule initialization"
36+ fi
37+ else
38+ echo "No .gitmodules file found, no submodules to initialize"
39+ fi
2040
2141 - name : Create custom source code packages
2242 # env:
You can’t perform that action at this time.
0 commit comments