From e52b8b4639c8cbff49fd4f37483ea07d8349e448 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?-=CB=8F=CB=8B=20Maple=20=CB=8A=CB=8E?= Date: Thu, 21 Mar 2024 22:33:05 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20Added=20a=20workflow=20to=20auto?= =?UTF-8?q?matically=20update=20the=20submodules?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/update_submodules.yaml | 32 ++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/update_submodules.yaml diff --git a/.github/workflows/update_submodules.yaml b/.github/workflows/update_submodules.yaml new file mode 100644 index 0000000..c41d8b1 --- /dev/null +++ b/.github/workflows/update_submodules.yaml @@ -0,0 +1,32 @@ +name: Update Submodules + +on: + push: + branches: + - 'blogposts' + +jobs: + update_submodules: + runs-on: ubuntu-latest + + permissions: + contents: write + + steps: + - name: Checkout main branch + uses: actions/checkout@v2 + with: + ref: 'main' # Specify the main branch + + - name: Set up Git + run: | + git config --global user.name "Automated Release" + git config --global user.email "admin@kalitsune.net" + + - name: Update submodules + run: | + git submodule update --init --recursive + git submodule update --remote --merge + git add . + git commit -m "🔄 Update submodules" || echo "No changes to commit" + git push origin main