From 8d30817c86a17dfb4c2c9c55cf133a5d42099400 Mon Sep 17 00:00:00 2001 From: DGun Otto Date: Sun, 17 Dec 2023 00:46:27 +0800 Subject: [PATCH] Update automatic-update.yml --- .github/workflows/automatic-update.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/automatic-update.yml b/.github/workflows/automatic-update.yml index 1a7a323..341a5d8 100644 --- a/.github/workflows/automatic-update.yml +++ b/.github/workflows/automatic-update.yml @@ -34,7 +34,13 @@ jobs: sed -i "s/\(purpurRef\s*=\s*\).*/\1$PAPER_REF/" gradle.properties env: PAPER_REF: ${{ steps.purpurRef.outputs.purpurRef }} - + - name: Check for changes + run: | + cd DivineMC + if git diff --quiet; then + echo "No changes to commit." + exit 0 + fi - name: Write to repository run: | cd DivineMC