Skip to content

Commit 9aabdcf

Browse files
committed
use HOMEBREW_BUMP_PR_TOKEN to open pr
Signed-off-by: Bugen Zhao <i@bugenzhao.com>
1 parent 634ed18 commit 9aabdcf

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/bump_risingwave.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ jobs:
1616
runs-on: ubuntu-latest
1717
env:
1818
HOMEBREW_NO_INSTALL_FROM_API: 1 # https://github.com/Homebrew/brew/issues/15049
19-
HOMEBREW_GITHUB_API_TOKEN: ${{ github.token }}
20-
GH_TOKEN: ${{ github.token }}
21-
GITHUB_TOKEN: ${{ github.token }}
19+
HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.HOMEBREW_BUMP_PR_TOKEN }}
20+
GH_TOKEN: ${{ secrets.HOMEBREW_BUMP_PR_TOKEN }}
21+
GITHUB_TOKEN: ${{ secrets.HOMEBREW_BUMP_PR_TOKEN }}
2222
TAP: ${{ github.repository_owner }}/risingwave
2323
steps:
2424
- name: Set up Homebrew

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ $ $(brew --prefix risingwave@1.2)/bin/risingwave --version
4747
### GitHub Actions
4848

4949
We use the manual GitHub Actions workflow `bump risingwave` to bump the formula. This requires write access to this repository.
50+
The workflow expects a repository secret `HOMEBREW_BUMP_PR_TOKEN` (PAT or GitHub App token) with permissions to push branches and open PRs.
5051

5152
1. Go to **Actions****bump risingwave****Run workflow**
5253
2. (Optional) Set `version` to `x.y.z`. If left empty, it uses the latest stable release (ignores prereleases).

0 commit comments

Comments
 (0)