Skip to content

Commit f555e19

Browse files
authored
Merge pull request #2641 from benderl/github-actions
catch builds without changes
2 parents 9a3ddcd + c2656ae commit f555e19

4 files changed

Lines changed: 24 additions & 8 deletions

File tree

.github/workflows/build_display_theme_cards.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,9 @@ jobs:
3333
git config user.name "${{ github.actor }}"
3434
git config user.email "${{ github.actor }}@users.noreply.github.com"
3535
git add packages/modules/display_themes/cards/web
36-
git commit -m "Build Display Theme: Cards"
37-
git push
36+
if ! git diff --cached --quiet; then
37+
git commit -m "Build Display Theme: Cards"
38+
git push
39+
else
40+
echo "No changes to commit."
41+
fi

.github/workflows/build_display_theme_colors.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,9 @@ jobs:
3333
git config user.name "${{ github.actor }}"
3434
git config user.email "${{ github.actor }}@users.noreply.github.com"
3535
git add packages/modules/display_themes/colors/web
36-
git commit -m "Build Display Theme: Colors"
37-
git push
36+
if ! git diff --cached --quiet; then
37+
git commit -m "Build Display Theme: Colors"
38+
git push
39+
else
40+
echo "No changes to commit."
41+
fi

.github/workflows/build_web_theme_colors.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,9 @@ jobs:
3333
git config user.name "${{ github.actor }}"
3434
git config user.email "${{ github.actor }}@users.noreply.github.com"
3535
git add packages/modules/web_themes/colors/web
36-
git commit -m "Build Web Theme: Colors"
37-
git push
36+
if ! git diff --cached --quiet; then
37+
git commit -m "Build Web Theme: Colors"
38+
git push
39+
else
40+
echo "No changes to commit."
41+
fi

.github/workflows/build_web_theme_koala.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,9 @@ jobs:
3333
git config user.name "${{ github.actor }}"
3434
git config user.email "${{ github.actor }}@users.noreply.github.com"
3535
git add packages/modules/web_themes/koala/web
36-
git commit -m "Build Web Theme: Koala"
37-
git push
36+
if ! git diff --cached --quiet; then
37+
git commit -m "Build Web Theme: Koala"
38+
git push
39+
else
40+
echo "No changes to commit."
41+
fi

0 commit comments

Comments
 (0)