Skip to content

Commit

Permalink
Update update-submodules.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
czyt authored Apr 18, 2024
1 parent 7cce0c2 commit 955d37c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/update-submodules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
echo "check submodule is changed or not"
# Check if submodules have changed
SUBMODULES_CHANGED=$(git status --porcelain=v1 2>/dev/null | grep "^ M")
SUBMODULES_CHANGED=$(git submodule foreach --recursive 'git ls-files -m | grep . && echo "changed"' | grep "changed")
if [ "x$SUBMODULES_CHANGED" != "x" ]; then
echo "submodule is changed ,create new branch"
# Create a new branch
Expand Down

0 comments on commit 955d37c

Please sign in to comment.