Update Submodules #1307
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: Update Submodules | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 0 * * *" | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Checkout Submodules | |
run: | | |
git submodule update --init --remote | |
- name: Commit Changes | |
run: | | |
git diff-index --quiet HEAD -- && exit | |
git config user.name github-actions | |
git config user.email [email protected] | |
git add . | |
git commit -m "Auto-Update Submodules" | |
git push |