Skip to content

Commit 08d507c

Browse files
sbryngelsonclaude
andcommitted
Handle no-changes case in homebrew-release workflow
If the formula is already up to date (same version/SHA, no bottle block), exit gracefully instead of failing on empty commit. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 5851233 commit 08d507c

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/homebrew-release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,13 @@ jobs:
157157
git config user.email "github-actions[bot]@users.noreply.github.com"
158158
159159
git add Formula/mfc.rb
160+
161+
# Check if there are changes to commit
162+
if git diff --cached --quiet; then
163+
echo "::notice::No changes to commit - formula already up to date for v${VERSION}"
164+
exit 0
165+
fi
166+
160167
git commit -m "Update MFC to v${VERSION}"
161168
162169
echo "Pushing to homebrew-mfc..."

0 commit comments

Comments
 (0)