Skip to content

Commit 8efff8a

Browse files
committed
fix(ci): create empty .gitmodules before submodule add in sync-releases
The previous fix (87163ba) removed the explicit `printf > .gitmodules` line, assuming `git submodule add` would create the file on its own. It doesn't when the parent step already wiped the working tree — submodule add refuses with: fatal: please make sure that the .gitmodules file is in the working tree Create an empty .gitmodules (and stage it) before the add call.
1 parent adf55c7 commit 8efff8a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/sync-releases.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ jobs:
117117
cd ${{ steps.target.outputs.dir }}
118118
git rm -rf whatsmeow-lib 2>/dev/null || true
119119
rm -rf whatsmeow-lib .gitmodules
120+
: > .gitmodules
121+
git add .gitmodules
120122
git submodule add -f https://github.com/EvolutionAPI/whatsmeow.git whatsmeow-lib
121123
cd whatsmeow-lib
122124
git checkout "$WHATSMEOW_SHA"

0 commit comments

Comments
 (0)