diff --git a/.gitea/workflows/sync.yml b/.gitea/workflows/sync.yml index 11be654..7af0a4a 100644 --- a/.gitea/workflows/sync.yml +++ b/.gitea/workflows/sync.yml @@ -27,7 +27,19 @@ jobs: ls -lh cp -r /home/steam/Steam/steamapps/workshop/content/394360/2249768662 src 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 + if: ${{ steps.check_changes.outputs.has_changes == 'true' }} run: | ls -lh cd azurlane-tj