feat: update workflow
All checks were successful
build / build (push) Successful in 1m25s
build / trigger-build-image (push) Has been skipped

This commit is contained in:
zzjc1234 2024-10-10 13:07:42 +08:00
parent e7bd289320
commit 9755af1175

View File

@ -29,14 +29,14 @@ jobs:
local_hash="" local_hash=""
fi fi
remote_hash=$(git ls-remote https://mirror.ghproxy.com/https://github.com/BoYanZh/Joint-Teapot | grep master | awk '{print $1}') remote_hash=$(git ls-remote https://ghp.ci/https://github.com/BoYanZh/Joint-Teapot | grep master | awk '{print $1}')
echo "Local hash: $local_hash" echo "Local hash: $local_hash"
echo "Remote hash: $remote_hash" echo "Remote hash: $remote_hash"
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..."
pip install git+https://mirror.ghproxy.com/https://github.com/BoYanZh/Joint-Teapot pip install git+https://ghp.ci/https://github.com/BoYanZh/Joint-Teapot
echo "$remote_hash" > master_hash.txt echo "$remote_hash" > master_hash.txt
else else