Skip to content

Commit

Permalink
Create update-submodules.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
diceroll123 committed Nov 29, 2024
1 parent 7a0d711 commit dbb7683
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/update-submodules.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
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 }}

0 comments on commit dbb7683

Please sign in to comment.