ci(submodules): fix set up git
This commit is contained in:
parent
b59374ba63
commit
83c2644a0a
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user