📥 Sync submodules #509
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: 📥 Sync submodules | |
on: | |
workflow_call: | |
schedule: | |
- cron: '0 3 * * *' | |
jobs: | |
sync: | |
name: ⤵️ Sync Submodules | |
runs-on: ubuntu-latest | |
steps: | |
- name: ➡️ Checkout Repository | |
uses: actions/checkout@main | |
with: | |
fetch-depth: 0 | |
- name: ⬇️ Pull Submodules Recursively | |
shell: bash | |
run: | | |
git submodule update --init --recursive --remote | |
- name: ⬆️ Push Changes (if any) | |
shell: bash | |
run: | | |
git config user.name "github-actions[bot]" | |
git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git commit -am "chore: sync submodules" || true | |
git push origin master |