Skip to content

Update Submodules

Update Submodules #2

name: Update Submodules
on:
schedule:
- cron: '0 0 * * 0' # Every Sunday at midnight UTC
workflow_dispatch: # Allows manual triggering
jobs:
update-submodules:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: true
- name: Update submodules
run: |
git submodule update --init --recursive
- name: Commit and push changes
run: |
git config user.name "GitHub Actions"
git config user.email "[email protected]"
git add .
git commit -m "Update submodules"
git push
env:
GITHUB_TOKEN: ${{ github.token }}