Automatic submodule update #1192
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: "Automatic submodule update" | |
on: | |
schedule: | |
- cron: "0 0 * * *" | |
workflow_dispatch: {} | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: 'true' | |
- name: Update submodules | |
run: | | |
git submodule update --remote | |
- name: Commit and push changes | |
run: | | |
git config user.name github-actions | |
git config user.email 41898282+github-actions[bot]@users.noreply.github.com | |
git add . | |
git diff --quiet && git diff --staged --quiet || git commit -m "auto: update submodules" | |
git push |