From 0b58614dc0cfe39f8f62988862a0034048328bc7 Mon Sep 17 00:00:00 2001 From: Alex van Andel Date: Mon, 16 Aug 2021 20:01:23 +0000 Subject: [PATCH] Updated .gitmodules to use https & update Calendso submodule every 4 hours --- .github/workflows/update-submodules.yml | 26 +++++++++++++++++++++++++ .gitmodules | 2 +- 2 files changed, 27 insertions(+), 1 deletion(-) 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 0000000..a35d9fc --- /dev/null +++ b/.github/workflows/update-submodules.yml @@ -0,0 +1,26 @@ +name: Update Calendso +on: + schedule: + - cron: "0 4 * * *" + workflow_dispatch: ~ + +jobs: + sync: + name: 'Submodules Sync' + runs-on: ubuntu-latest + defaults: + run: + shell: bash + steps: + - name: checkout + uses: actions/checkout@v2 + + - name: Git submodule update + run: | + git submodule update --recursive --remote --init + + - name: Commit + run: | + git config user.email "actions@github.com" + git config user.name "actions-user" + git commit -am "Auto updated submodule references" && git push || echo "No changes to commit" diff --git a/.gitmodules b/.gitmodules index 7bf92d2..250b27f 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,4 +1,4 @@ [submodule "calendso"] path = calendso - url = git@github.com:calendso/calendso.git + url = https://github.com/calendso/calendso.git branch = main