Update assets.yml

This commit is contained in:
2025-08-11 12:56:34 +08:00
committed by GitHub
parent b7cb3effc6
commit ad5594c693

View File

@@ -50,11 +50,11 @@ jobs:
ls -la out/assets
# 检查是否有变更包括新增修改删除
if git diff --quiet -- out/assets; then
echo "No changes to sync to B repo. Exiting."
else
# if git diff --quiet -- out/assets; then
# echo "No changes to sync to B repo. Exiting."
# else
git add out/assets
git commit -m "Sync assets: $(date +'%Y-%m-%d %H:%M:%S')"
git push origin $B_BRANCH || { echo "Failed to push to B repo"; exit 1; }
echo "Sync completed successfully."
fi
#fi