feat: update workflow
Some checks failed
build / trigger-build-image (push) Has been cancelled
build / build (push) Has been cancelled
build / triger-update-ci (push) Has been skipped
build / build (pull_request) Successful in 2m5s
build / trigger-build-image (pull_request) Has been skipped
build / triger-update-ci (pull_request) Successful in 8s

This commit is contained in:
zzjc1234 2024-10-10 16:16:00 +08:00
parent 1a9c773651
commit 809126242e

View File

@ -98,17 +98,21 @@ jobs:
if [ "$local_hash" != "$remote_hash" ]; then
echo "Hashes are different, updating Joint-Teapot..."
echo "HASH_MATCH=true" >> $GITHUB_ENV
else
echo "Hashes are the same, no update required."
exit 0
echo "HASH_MATCH=false" >> $GITHUB_ENV
fi
- name: Set up Git
if: env.HASH_MATCH==false
run: |
echo env.HASH_MATCH
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: Clone, Commit and Push
shell: bash
if: env.HASH_MATCH==false
run: |
git clone ssh://git@focs.ji.sjtu.edu.cn:2222/JOJ/runner-images.git runner-images
cd runner-images