Update Submodules #196
This file contains hidden or 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: '55 23,5,11,17 * * *' | |
concurrency: | |
group: ${{github.workflow}} | |
cancel-in-progress: true | |
jobs: | |
update-submodule: | |
name: Update Submodules | |
runs-on: ubuntu-latest | |
permissions: | |
actions: write | |
contents: write | |
steps: | |
- name: Checkout Main | |
uses: actions/checkout@v4 | |
with: | |
ref: master | |
fetch-depth: 0 | |
submodules: recursive | |
- name: Update Submodules | |
run: | | |
git submodule update --init --recursive | |
git submodule update --recursive --remote | |
- name: Commit Changes | |
run: | | |
git config user.name github-actions[bot] | |
git config user.email 41898282+github-actions[bot]@users.noreply.github.com | |
git add --all | |
git diff --cached --quiet || git commit -m "Update Submodules" | |
- name: Push Changes | |
run: | | |
git push |