From efbed3c2c402b608a780a2ef27a1aa5caaab2f1c Mon Sep 17 00:00:00 2001 From: Mohsen Azimi Date: Sat, 18 Jan 2025 22:10:03 +0700 Subject: [PATCH] Do not push if no changes to public download script is made --- .github/workflows/ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 043e3c1..a359bd1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -144,6 +144,11 @@ jobs: BODO_COMMIT_MESSAGE=$(git log -1 --pretty=%B) cd bodo-run.github.io git add public/stop-nagging.sh public/stop-nagging.ps1 + # Exit with 0 if no changes + if git diff --exit-code; then + echo "No changes to commit" + exit 0 + fi git commit -m "Update stop-nagging installation scripts" \ -m "" \ -m "$BODO_COMMIT_MESSAGE" \