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
|
uses: https://gitea.com/BoYanZh/checkout@focs
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Git Submodule Update
|
|
||||||
run: |
|
|
||||||
git pull --recurse-submodules
|
|
||||||
git submodule update --remote --recursive
|
|
||||||
- name: Set up Git
|
- name: Set up Git
|
||||||
run: |
|
run: |
|
||||||
git config --global user.name "gitea-actions[bot]"
|
git config --global user.name "gitea-actions[bot]"
|
||||||
git config --global user.email "gitea-actions[bot]@users.noreply.gitea.com"
|
git config --global user.email "gitea-actions[bot]@users.noreply.gitea.com"
|
||||||
chown -R root:root /root/.ssh
|
chown -R root:root /root/.ssh
|
||||||
|
- name: Git Submodule Update
|
||||||
|
run: |
|
||||||
|
git pull --recurse-submodules
|
||||||
|
git submodule update --remote --recursive
|
||||||
- name: Commit update
|
- name: Commit update
|
||||||
run: |
|
run: |
|
||||||
git commit -am "chore: update submodule references" && git push || echo "No changes to commit"
|
git commit -am "chore: update submodule references" && git push || echo "No changes to commit"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user