From cce4788aba851ff780540dfd9dadf4d1892dce8f Mon Sep 17 00:00:00 2001 From: dragonwocky Date: Sun, 3 Oct 2021 22:59:48 +1100 Subject: [PATCH] workflow: update parent repo --- api/.github/workflows/update-parents.yml | 26 ++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 api/.github/workflows/update-parents.yml diff --git a/api/.github/workflows/update-parents.yml b/api/.github/workflows/update-parents.yml new file mode 100644 index 0000000..dcd1dff --- /dev/null +++ b/api/.github/workflows/update-parents.yml @@ -0,0 +1,26 @@ +name: 'update parent repositories' + +on: + push: + branches: + - dev + +jobs: + sync: + name: 'update extension' + runs-on: ubuntu-latest + steps: + - name: checkout repo + uses: actions/checkout@v2 + with: + token: ${{ secrets.CI_TOKEN }} + submodules: true + repository: notion-enhancer/extension + - name: pull updates + run: | + git pull --recurse-submodules + git submodule update --remote --recursive + - name: commit changes + uses: stefanzweifel/git-auto-commit-action@v4 + with: + commit_message: 'update submodule: ${{ github.event.repository.name }}'