Skip to content

Commit

Permalink
Update update-submodule.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Ponchale authored Oct 9, 2023
1 parent f3e810a commit 87b04cf
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/update-submodule.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Update Submodules
name: (U) 🧰 Update Submodules

on:
workflow_dispatch:
Expand All @@ -14,9 +14,20 @@ jobs:
with:
submodules: "recursive"

- name: configure git
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
- name: Update Submodules
run: |
git submodule update --init --recursive
git submodule update --remote
git add .
git commit -m "[FB bot] Submodule | Update Submodules"
if git diff-index --quiet HEAD --; then
echo "No submodule changes; exiting."
exit 0
fi
git commit -m "[FB bot] Update submodules" -a
git push

0 comments on commit 87b04cf

Please sign in to comment.