diff --git a/.github/workflows/update-submodules.yml b/.github/workflows/update-submodules.yml new file mode 100644 index 0000000..dcd8abf --- /dev/null +++ b/.github/workflows/update-submodules.yml @@ -0,0 +1,24 @@ +name: Update Submodules + +on: + workflow_dispatch: + push: + branches: + - main + schedule: + - cron: '0 0 * * *' + +jobs: + update-submodules: + runs-on: ubuntu-latest + + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + + - name: Update Submodules + run: | + git submodule update --remote --merge + git add . + git commit -m "Update submodules" || echo "No changes to commit" + git push