From e62a8d76026077ab4b5d2fc27d626f69ed2a8e0d Mon Sep 17 00:00:00 2001 From: Semyon Bezrukov Date: Fri, 11 Mar 2022 17:03:04 +0300 Subject: [PATCH] Add update submodules github action (#1680) --- .github/workflows/update-submodules.yml | 27 +++++++++++++++++++++++++ 1 file changed, 27 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 00000000..9841bf49 --- /dev/null +++ b/.github/workflows/update-submodules.yml @@ -0,0 +1,27 @@ +name: Update submodules + +on: workflow_dispatch + +jobs: + + update-submodules: + runs-on: ubuntu-latest + steps: + + - name: Checkout + uses: actions/checkout@v3 + with: + token: ${{ secrets.PUSH_TOKEN }} + + - name: 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[bot]' + git config --global user.email 'github-actions[bot]@users.noreply.github.com' + git add --all + git commit -m 'Update submodules' || echo 'No changes to commit' + git push