更新 .gitea/workflows/sync.yml

This commit is contained in:
azw
2024-07-14 09:45:31 +08:00
parent 241afb1005
commit b7af37adbe

View File

@@ -27,7 +27,19 @@ jobs:
ls -lh ls -lh
cp -r /home/steam/Steam/steamapps/workshop/content/394360/3014768049 src cp -r /home/steam/Steam/steamapps/workshop/content/394360/3014768049 src
rm -rf src/.git rm -rf src/.git
- name: check diff
id: check_changes
run: |
ls -lh
cd azurlane-tj
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 - name: commit and push
if: ${{ steps.check_changes.outputs.has_changes == 'true' }}
run: | run: |
ls -lh ls -lh
cd az-more-slots cd az-more-slots