Skip to content

Commit

Permalink
chore: create update submodules action (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
benleembruggen committed Jan 4, 2025
1 parent 312d5f2 commit 66d457d
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/update-submodules.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Update submodules

on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:

jobs:
update:
runs-on: ubuntu-latest
timeout-minutes: 5

steps:
- uses: actions/checkout@v4
with:
submodules: true

- name: Pull & update submodules recursively
run: |
git submodule update --init --recursive
git submodule update --recursive --remote
- name: Commit & push changes
run: |
git config --global user.name github-actions
git config --global user.email github-actions@github.com
git commit -am "Update submodules"
git push

0 comments on commit 66d457d

Please sign in to comment.