From 2bea8a8d29c97027afc995995f179ffa53a03fd3 Mon Sep 17 00:00:00 2001 From: azw Date: Sun, 14 Jul 2024 09:37:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.gitea/workflows/sync.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/sync.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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