更新 .gitea/workflows/sync.yml
All checks were successful
sync / build (push) Successful in 8s

This commit is contained in:
azw
2024-07-14 09:51:13 +08:00
parent 2b8bb4c8f4
commit ed71e1c33d

View File

@@ -27,7 +27,19 @@ jobs:
ls -lh
cp -r /home/steam/Steam/steamapps/workshop/content/394360/3115864680 src
rm -rf src/.git
- name: check diff
id: check_changes
run: |
ls -lh
cd az-vnr-patch
ls -lh
if [ -z "$(git status --porcelain)" ]; then
echo "::set-output name=has_changes::false"
else
echo "::set-output name=has_changes::true"
fi
- name: commit and push
if: ${{ steps.check_changes.outputs.has_changes == 'true' }}
run: |
ls -lh
cd az-vnr-patch