From 4e9aa182c6699f049757f6f4929134009a90a1e4 Mon Sep 17 00:00:00 2001 From: sdarwin Date: Wed, 6 Nov 2024 06:24:38 -0700 Subject: [PATCH] gha: conditional check, css file --- .github/workflows/update-website-v2.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update-website-v2.yml b/.github/workflows/update-website-v2.yml index 0d57dd4..0e01c1c 100644 --- a/.github/workflows/update-website-v2.yml +++ b/.github/workflows/update-website-v2.yml @@ -31,5 +31,7 @@ jobs: git config user.name "${{ github.actor }}" git config user.email "${{ github.actor }}@users.noreply.github.com" git add static/css/boostlook.css - git commit -m "Update boostlook.css from boostlook repository" - git push origin develop \ No newline at end of file + if ! git diff-index --quiet HEAD; then + git commit -m "Update boostlook.css from boostlook repository" + git push origin develop + fi