(U) 🧰 Update Submodules #456
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: (U) 🧰 Update Submodules | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 15 * * *" | |
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 |