Skip to content

Commit 7b577d9

Browse files
committed
fix: remove Homebrew Core PR creation step as requested by user
1 parent 59fff2a commit 7b577d9

File tree

1 file changed

+3
-47
lines changed

1 file changed

+3
-47
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -303,52 +303,8 @@ jobs:
303303
git commit -m "Update tidy-viewer to version $VERSION"
304304
git push origin main
305305
306-
- name: Create Homebrew Core PR
307-
if: env.HOMEBREW_TOKEN != ''
308-
env:
309-
GH_TOKEN: ${{ env.HOMEBREW_TOKEN }}
310-
run: |
311-
VERSION="${{ steps.version.outputs.version }}"
312-
SHA256="${{ steps.sha256.outputs.sha256 }}"
313-
314-
# Install gh if missing
315-
if ! command -v gh >/dev/null 2>&1; then
316-
sudo apt-get update
317-
sudo apt-get install -y gh
318-
fi
319-
320-
# Clone personal homebrew-core fork with token
321-
git clone https://x-access-token:${{ env.HOMEBREW_TOKEN }}@github.com/alexhallam/homebrew-core.git
322-
cd homebrew-core
323-
324-
# Set up Git user identity
325-
git config user.name "github-actions[bot]"
326-
git config user.email "github-actions[bot]@users.noreply.github.com"
327-
328-
# Fetch upstream
329-
git remote add upstream https://github.com/Homebrew/homebrew-core.git
330-
git fetch upstream
331-
git checkout main
332-
git merge upstream/main
333-
334-
# Update formula
335-
sed -i "s/version \"[^\"]*\"/version \"$VERSION\"/" Formula/t/tidy-viewer.rb
336-
sed -i "s/sha256 \"[^\"]*\"/sha256 \"$SHA256\"/" Formula/t/tidy-viewer.rb
337-
338-
# Create branch and push
339-
git checkout -b tidy-viewer-$VERSION
340-
git add Formula/t/tidy-viewer.rb
341-
git commit -m "tidy-viewer: update $VERSION bottle"
342-
git push origin tidy-viewer-$VERSION
343-
344-
# Try to create PR using gh, but don't fail if it doesn't work
345-
echo "Attempting to create Homebrew Core PR..."
346-
if gh pr create --repo Homebrew/homebrew-core --title "tidy-viewer: update $VERSION bottle" --body "Update tidy-viewer to version $VERSION"; then
347-
echo "✅ Homebrew Core PR created successfully"
348-
else
349-
echo "⚠️ Homebrew Core PR creation failed, but continuing..."
350-
echo "You may need to manually create a PR from the branch: tidy-viewer-$VERSION"
351-
fi
306+
# Homebrew Core PR creation removed - user requested to skip this step
307+
# as it keeps breaking and they don't have time to fix it
352308

353309
post-release:
354310
name: Post-Release Verification
@@ -461,7 +417,7 @@ jobs:
461417
echo "✅ Published to crates.io"
462418
echo "✅ Built Debian and RPM packages"
463419
echo "✅ Built Windows, macOS, and Linux binary archives"
464-
echo "✅ Updated Homebrew formulas"
420+
echo "✅ Updated personal Homebrew tap"
465421
echo "✅ Created GitHub release"
466422
echo ""
467423
echo "📦 Installation:"

0 commit comments

Comments
 (0)