From 8935bc9a6b72dd09263faf77778cd64d7a195b91 Mon Sep 17 00:00:00 2001 From: Alejandro Villar Date: Thu, 27 Jul 2023 15:41:37 +0200 Subject: [PATCH] Update submodules periodically --- .github/workflows/update_submodules.yml | 32 +++++++++++++++++++++++++ .gitmodules | 1 + 2 files changed, 33 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..c089ffff --- /dev/null +++ b/.github/workflows/update_submodules.yml @@ -0,0 +1,32 @@ +name: 'Submodules sync' + +on: + workflow_dispatch: + schedule: + # Run once per day + - cron: '0 3 * * *' + +jobs: + sync: + name: 'Submodules sync' + runs-on: ubuntu-latest + + defaults: + run: + shell: bash + + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + submodules: recursive + + - name: Git submodule Update + run: | + git pull --recurse-submodules + git submodule update --remote --recursive + + - name: Add and commit + uses: EndBug/add-and-commit@v9 + with: + message: Submodules sync diff --git a/.gitmodules b/.gitmodules index e2759bb5..7cdc6ca6 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,4 @@ [submodule "sdw-sosa-ssn"] path = sdw-sosa-ssn url = https://github.com/w3c/sdw-sosa-ssn + branch = main