Skip to content

Commit 7a84245

Browse files
committed
chore: prevent empty commit when no changes to manifest.json
1 parent a995ed8 commit 7a84245

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/update-version.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@ jobs:
3030
git config user.name "github-actions[bot]"
3131
git config user.email "github-actions[bot]@users.noreply.github.com"
3232
git add custom_components/ha_pocketsmith/manifest.json
33-
git commit -m "chore: bump version to ${GITHUB_REF_NAME}"
33+
git diff --staged --quiet || git commit -m "chore: bump version to ${GITHUB_REF_NAME}"
3434
git push

0 commit comments

Comments
 (0)