From ed71e1c33d256a635f933a806e400682c65e9040 Mon Sep 17 00:00:00 2001 From: azw Date: Sun, 14 Jul 2024 09:51:13 +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 f8d63a1..7e669da 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/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