Update assets.yml
This commit is contained in:
8
.github/workflows/assets.yml
vendored
8
.github/workflows/assets.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user