From a3cbf5258ee83afe66fa645be063181671b19c38 Mon Sep 17 00:00:00 2001 From: Tw93 Date: Tue, 30 Dec 2025 15:51:19 +0800 Subject: [PATCH] feat: add automatic Homebrew Core formula update support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add workflow step to auto-create PRs to Homebrew/homebrew-core - Keep personal tap auto-update for immediate releases - Set continue-on-error to prevent blocking on core update failures - Use action's default commit message format for consistency 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- .github/workflows/release.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 21d6697..f0466b4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -91,7 +91,7 @@ jobs: echo "version=$VERSION" >> $GITHUB_OUTPUT echo "Releasing version: $VERSION (tag: $TAG)" - - name: Update Homebrew formula + - name: Update Homebrew formula (Personal Tap) uses: mislav/bump-homebrew-formula-action@56a283fa15557e9abaa4bdb63b8212abc68e655c # v3.6 with: formula-name: mole @@ -105,9 +105,21 @@ jobs: env: COMMITTER_TOKEN: ${{ secrets.PAT_TOKEN }} - - name: Verify formula update + - name: Update Homebrew formula (Official Core) + uses: mislav/bump-homebrew-formula-action@56a283fa15557e9abaa4bdb63b8212abc68e655c # v3.6 + with: + formula-name: mole + homebrew-tap: Homebrew/homebrew-core + tag-name: ${{ steps.tag_version.outputs.tag }} + env: + COMMITTER_TOKEN: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }} + continue-on-error: true + + - name: Verify formula updates if: success() run: | - echo "✓ Homebrew formula updated successfully" + echo "✓ Homebrew formulae updated successfully" echo " Version: ${{ steps.tag_version.outputs.version }}" echo " Tag: ${{ steps.tag_version.outputs.tag }}" + echo " Personal tap: tw93/homebrew-tap" + echo " Official core: Homebrew/homebrew-core (PR created)"