ci: update submodule references
This commit is contained in:
parent
8ed89b7be7
commit
3355683609
28
.gitea/workflows/submodule.yaml
Normal file
28
.gitea/workflows/submodule.yaml
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
---
|
||||||
|
name: Submodules Sync
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
sync:
|
||||||
|
container:
|
||||||
|
image: focs.ji.sjtu.edu.cn:5000/gitea/runner-images:ubuntu-latest
|
||||||
|
volumes:
|
||||||
|
- /home/actions/.ssh:/root/.ssh
|
||||||
|
steps:
|
||||||
|
- name: Check out repository code
|
||||||
|
uses: https://gitea.com/BoYanZh/checkout@focs
|
||||||
|
- 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: 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