We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a955d7a + 826a70f commit 94ad89bCopy full SHA for 94ad89b
main.sh
@@ -143,6 +143,10 @@ function maybe_install_submodules() {
143
# Change directory ownership to container user due to issue https://github.com/actions/checkout/issues/760
144
# This will be changed to www-data or similar on deployment by deployer.
145
git config --global --add safe.directory "$GITHUB_WORKSPACE"
146
+ submodule_paths=$(grep path .gitmodules | awk '{print $3}')
147
+ for path in $submodule_paths; do
148
+ git config --global --add safe.directory "$GITHUB_WORKSPACE/$path"
149
+ done
150
151
# add github's public key
152
curl -sL https://api.github.com/meta | jq -r '.ssh_keys | .[]' | sed -e 's/^/github.com /' >>/etc/ssh/known_hosts
0 commit comments