Skip to content

Commit 7f6ad03

Browse files
committed
1231
1 parent 1622681 commit 7f6ad03

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

.github/workflows/create-git-branch-package-on-release.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,27 @@ jobs:
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:

0 commit comments

Comments
 (0)