From 6bf3d7ddaf6c10d127cbc57f43a0865a0b8c9914 Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Fri, 28 May 2021 00:38:31 +0200 Subject: [PATCH] :bug: github actions sync --- .github/actions/sync.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/actions/sync.yml diff --git a/.github/actions/sync.yml b/.github/actions/sync.yml new file mode 100644 index 0000000..fda5879 --- /dev/null +++ b/.github/actions/sync.yml @@ -0,0 +1,29 @@ +name: Update submodules + +# Controls when the action will run. +on: + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + schedule: + - cron: "0 0 * * *" + +jobs: + # This workflow contains a single job called "update" + update: + runs-on: ubuntu-latest + + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - 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 Fosscord + git config --global user.email actions@github.com + git commit -am "Update submodules" + git push