Refactor update-submodules workflow to handle zen-components submodule

This commit is contained in:
mr. M
2024-10-11 19:29:39 +02:00
parent 4cd304b4c6
commit e184e9a97c

View File

@@ -27,7 +27,8 @@ jobs:
# Only update the "components" submodule, we want to ignore l10n
git submodule update --init --recursive components
current_path=$(pwd)
submodule_path=$(git config --file .gitmodules --get-regexp path | awk '{ print $2 }' | grep components --color=never)
submodule_path="$(git config --file .gitmodules --get-regexp path | awk '{ print $2 }' | grep zen-components --color=never)"
echo "Submodule path: $submodule_path"
cd $submodule_path
git checkout master
git pull