From 9a2334f9206c983ddc479352ad12779811fb3b13 Mon Sep 17 00:00:00 2001 From: Keanu Date: Wed, 23 Jun 2021 18:30:46 +0200 Subject: [PATCH] [CD] Added submodule update workflow. --- .github/workflows/sync.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/sync.yml diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml new file mode 100644 index 0000000..5696d4b --- /dev/null +++ b/.github/workflows/sync.yml @@ -0,0 +1,24 @@ +name: Update submodules + +on: + workflow_dispatch: + schedule: + - cron: '0 0 * * *' + +jobs: + update: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - 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 + git config --global user.email actions@github.com + git commit -am "[dmitmel] Update submodule" | true + git push