ci(build): fix force build
All checks were successful
submodules sync / sync (push) Successful in 49s
build / build (push) Successful in 2m15s
build / trigger-build-image (push) Successful in 12s

This commit is contained in:
张泊明518370910136 2024-10-09 04:11:24 -04:00
parent 3f6f23e4a5
commit 69b2115a73
GPG Key ID: D47306D7062CDA9D

View File

@ -63,12 +63,11 @@ jobs:
- name: Clone, Commit and Push
shell: bash
run: |
COMMIT_MSG=${{ github.event.head_commit.message }}
git clone ssh://git@focs.ji.sjtu.edu.cn:2222/JOJ/runner-images.git runner-images
cd runner-images
if echo "$COMMIT_MSG" | grep -qi "force build"; then
git commit --allow-empty -m "chore: trigger force build gitea actions by JOJ3"
if echo "${{ github.event.head_commit.message }}" | grep -q "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"
git commit --allow-empty -m "chore: trigger gitea actions by JOJ3"
fi
git push