From c2656aeabb5510feceec9b011a6a044201b59199 Mon Sep 17 00:00:00 2001 From: Lutz Bender Date: Thu, 7 Aug 2025 12:38:40 +0200 Subject: [PATCH] catch builds without changes --- .github/workflows/build_display_theme_cards.yml | 8 ++++++-- .github/workflows/build_display_theme_colors.yml | 8 ++++++-- .github/workflows/build_web_theme_colors.yml | 8 ++++++-- .github/workflows/build_web_theme_koala.yml | 8 ++++++-- 4 files changed, 24 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build_display_theme_cards.yml b/.github/workflows/build_display_theme_cards.yml index cc2d3666fe..002b0378e8 100644 --- a/.github/workflows/build_display_theme_cards.yml +++ b/.github/workflows/build_display_theme_cards.yml @@ -33,5 +33,9 @@ jobs: git config user.name "${{ github.actor }}" git config user.email "${{ github.actor }}@users.noreply.github.com" git add packages/modules/display_themes/cards/web - git commit -m "Build Display Theme: Cards" - git push + if ! git diff --cached --quiet; then + git commit -m "Build Display Theme: Cards" + git push + else + echo "No changes to commit." + fi diff --git a/.github/workflows/build_display_theme_colors.yml b/.github/workflows/build_display_theme_colors.yml index 67c4dfe93d..c1853cfdd1 100644 --- a/.github/workflows/build_display_theme_colors.yml +++ b/.github/workflows/build_display_theme_colors.yml @@ -33,5 +33,9 @@ jobs: git config user.name "${{ github.actor }}" git config user.email "${{ github.actor }}@users.noreply.github.com" git add packages/modules/display_themes/colors/web - git commit -m "Build Display Theme: Colors" - git push + if ! git diff --cached --quiet; then + git commit -m "Build Display Theme: Colors" + git push + else + echo "No changes to commit." + fi diff --git a/.github/workflows/build_web_theme_colors.yml b/.github/workflows/build_web_theme_colors.yml index 65cff97d3a..f0205e2e92 100644 --- a/.github/workflows/build_web_theme_colors.yml +++ b/.github/workflows/build_web_theme_colors.yml @@ -33,5 +33,9 @@ jobs: git config user.name "${{ github.actor }}" git config user.email "${{ github.actor }}@users.noreply.github.com" git add packages/modules/web_themes/colors/web - git commit -m "Build Web Theme: Colors" - git push + if ! git diff --cached --quiet; then + git commit -m "Build Web Theme: Colors" + git push + else + echo "No changes to commit." + fi diff --git a/.github/workflows/build_web_theme_koala.yml b/.github/workflows/build_web_theme_koala.yml index dc7fdb3487..af99325902 100644 --- a/.github/workflows/build_web_theme_koala.yml +++ b/.github/workflows/build_web_theme_koala.yml @@ -33,5 +33,9 @@ jobs: git config user.name "${{ github.actor }}" git config user.email "${{ github.actor }}@users.noreply.github.com" git add packages/modules/web_themes/koala/web - git commit -m "Build Web Theme: Koala" - git push + if ! git diff --cached --quiet; then + git commit -m "Build Web Theme: Koala" + git push + else + echo "No changes to commit." + fi