ci(submodules): fix set up git
All checks were successful
build / build (push) Successful in 2m10s
submodules sync / sync (push) Successful in 8s
build / trigger-build-image (push) Successful in 6s

This commit is contained in:
张泊明518370910136 2024-10-08 16:37:23 -04:00
parent b59374ba63
commit 83c2644a0a
GPG Key ID: D47306D7062CDA9D

View File

@ -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"