Skip to content

(U) 🧰 Update Submodules #421

(U) 🧰 Update Submodules

(U) 🧰 Update Submodules #421

name: (U) 🧰 Update Submodules
on:
workflow_dispatch:
schedule:
- cron: "0 16 * * *"
jobs:
update-submodules:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
submodules: "recursive"
token: ${{ secrets.PAT }}
- 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 --remote
git add .
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