Skip to content

Commit

Permalink
[fix] Cannot update suhmodule
Browse files Browse the repository at this point in the history
  • Loading branch information
surapunoyousei committed Oct 1, 2023
1 parent 833d6f3 commit 8a46886
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/update-submodule.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Update Submodules
name: (U) 🧰 Update Submodules

on:
workflow_dispatch:
schedule:
- cron: "0 15 * * *"
- cron: "0 16 * * *"

jobs:
update-submodules:
Expand All @@ -13,10 +13,21 @@ jobs:
uses: actions/checkout@v2
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 "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 8a46886

Please sign in to comment.