Skip to content

Commit 5ae76b3

Browse files
committed
feat: add Homebrew tap automation and update install docs
Add GitHub Actions workflow that auto-updates the Homebrew formula in coderabbitai/homebrew-tap on each new release. Update README to promote `brew install git-gtr` as the primary macOS install method. Closes #92
1 parent e3c3e36 commit 5ae76b3

File tree

2 files changed

+34
-8
lines changed

2 files changed

+34
-8
lines changed

.github/workflows/homebrew.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Update Homebrew Formula
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
homebrew:
9+
name: Bump Homebrew formula
10+
runs-on: ubuntu-latest
11+
if: ${{ !github.event.release.prerelease }}
12+
steps:
13+
- uses: mislav/bump-homebrew-formula-action@v3
14+
with:
15+
formula-name: git-gtr
16+
formula-path: Formula/git-gtr.rb
17+
homebrew-tap: coderabbitai/homebrew-tap
18+
tag-name: ${{ github.event.release.tag_name }}
19+
create-pullrequest: false
20+
commit-message: |
21+
{{formulaName}} {{version}}
22+
23+
Automated update from https://github.com/coderabbitai/git-worktree-runner
24+
env:
25+
COMMITTER_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }}

README.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,14 @@
4242

4343
## Quick Start
4444

45-
**Install:**
45+
**Homebrew (macOS):**
46+
47+
```bash
48+
brew tap coderabbitai/tap
49+
brew install git-gtr
50+
```
51+
52+
**Script installer (macOS / Linux):**
4653

4754
```bash
4855
git clone https://github.com/coderabbitai/git-worktree-runner.git
@@ -51,13 +58,7 @@ cd git-worktree-runner
5158
```
5259

5360
<details>
54-
<summary><b>Manual installation options</b></summary>
55-
56-
**macOS (Apple Silicon with Homebrew):**
57-
58-
```bash
59-
ln -s "$(pwd)/bin/git-gtr" "$(brew --prefix)/bin/git-gtr"
60-
```
61+
<summary><b>Other installation options</b></summary>
6162

6263
**macOS (Intel) / Linux:**
6364

0 commit comments

Comments
 (0)