From 66d457d9a7a7572833081ec27569cd63275c57f7 Mon Sep 17 00:00:00 2001 From: Ben Leembruggen Date: Sat, 4 Jan 2025 19:45:38 +0530 Subject: [PATCH] chore: create update submodules action (#140) --- .github/workflows/update-submodules.yml | 28 +++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/update-submodules.yml diff --git a/.github/workflows/update-submodules.yml b/.github/workflows/update-submodules.yml new file mode 100644 index 0000000000000..9169501888339 --- /dev/null +++ b/.github/workflows/update-submodules.yml @@ -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