Skip to content

Update Repository Content #5

Update Repository Content

Update Repository Content #5

name: Update Repository Content
on:
schedule:
- cron: '0 0 * * 0' # Weekly updates
workflow_dispatch:
jobs:
update-submodules:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
token: ${{ secrets.GITHUB_TOKEN }}
- name: Update submodules
run: |
git submodule update --remote --merge
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add .
git diff --staged --quiet || git commit -m "Auto-update repository content"
git push