Skip to content

Commit

Permalink
build: Handle no diff in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jseop-lim committed Jan 5, 2025
1 parent fce2eed commit b3a961c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/update_submodules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ jobs:
- name: Update submodules to latest commits
run: |
git submodule update --remote --recursive
git add .
git commit -m "feat: Update submodules to latest commits"
git push origin main
if [ -n "$(git status --porcelain)" ]; then
git add .
git commit -m "feat: Update submodules to latest commits"
git push origin main
else
echo "No changes to commit"
fi

0 comments on commit b3a961c

Please sign in to comment.