From 83c2644a0ae3ea5d894f9e5ab026a1371b65ddcb Mon Sep 17 00:00:00 2001 From: Boming Zhang Date: Tue, 8 Oct 2024 16:37:23 -0400 Subject: [PATCH] ci(submodules): fix set up git --- .gitea/workflows/submodule.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/submodule.yaml b/.gitea/workflows/submodule.yaml index 9d21a53..0d68af0 100644 --- a/.gitea/workflows/submodule.yaml +++ b/.gitea/workflows/submodule.yaml @@ -16,15 +16,15 @@ jobs: uses: https://gitea.com/BoYanZh/checkout@focs with: fetch-depth: 0 - - name: Git Submodule Update - run: | - git pull --recurse-submodules - git submodule update --remote --recursive - name: Set up Git run: | git config --global user.name "gitea-actions[bot]" git config --global user.email "gitea-actions[bot]@users.noreply.gitea.com" chown -R root:root /root/.ssh + - name: Git Submodule Update + run: | + git pull --recurse-submodules + git submodule update --remote --recursive - name: Commit update run: | git commit -am "chore: update submodule references" && git push || echo "No changes to commit"