fix: github env
Some checks failed
build / trigger-build-image (push) Blocked by required conditions
build / triger-update-ci (push) Successful in 16s
build / triger-update-ci (pull_request) Successful in 25s
build / build (push) Has been cancelled
build / build (pull_request) Successful in 1m54s
build / trigger-build-image (pull_request) Has been skipped

This commit is contained in:
zzjc1234 2024-10-10 16:31:11 +08:00
parent 69c0b30d07
commit 6cabf864c0

View File

@ -98,13 +98,13 @@ jobs:
if [ "$local_hash" != "$remote_hash" ]; then if [ "$local_hash" != "$remote_hash" ]; then
echo "Hashes are different, updating Joint-Teapot..." echo "Hashes are different, updating Joint-Teapot..."
echo "HASH_MATCH=true" >> $GITHUB_ENV echo "HASH_MATCH=false" >> $GITHUB_ENV
else else
echo "Hashes are the same, no update required." echo "Hashes are the same, no update required."
echo "HASH_MATCH=false" >> $GITHUB_ENV echo "HASH_MATCH=true" >> $GITHUB_ENV
fi fi
- name: Set up Git - name: Set up Git
if: env.HASH_MATCH == 'true' if: env.HASH_MATCH == 'false'
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"