ci(build): support force build runner-image
Some checks failed
submodules sync / sync (push) Successful in 40s
build / build (push) Successful in 2m26s
build / trigger-build-image (push) Failing after 14s

This commit is contained in:
张泊明518370910136 2024-10-09 03:36:45 -04:00
parent 995c32efaf
commit c008cc3eba
GPG Key ID: D47306D7062CDA9D

View File

@ -61,8 +61,14 @@ jobs:
git config --global user.email "gitea-actions[bot]@users.noreply.gitea.com"
chown -R root:root /root/.ssh
- name: Clone, Commit and Push
shell: bash
run: |
COMMIT_MSG=$(git log -1 --pretty=%B)
git clone ssh://git@focs.ji.sjtu.edu.cn:2222/JOJ/runner-images.git runner-images
cd runner-images
git commit --allow-empty -m "chore: trigger gitea actions by JOJ3"
if echo "$COMMIT_MSG" | grep -qi "force build"; then
git commit --allow-empty -m "chore: trigger force build gitea actions by JOJ3"
else
git commit --allow-empty -m "chore: trigger gitea actions by JOJ3"
fi
git push