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"