Skip to content

Commit 0583f04

Browse files
committed
Notify the maintainer to add the pr-pull label when approving a PR
1 parent 1597597 commit 0583f04

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/tests.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
branches:
66
- main
77
pull_request:
8+
paths:
9+
- 'Formula/**'
810

911
jobs:
1012
test-bot:
@@ -13,6 +15,17 @@ jobs:
1315
os: [macos-14]
1416
runs-on: ${{ matrix.os }}
1517
steps:
18+
- if: github.event_name == 'pull_request'
19+
name: Create a comment
20+
uses: peter-evans/create-or-update-comment@v4
21+
with:
22+
issue-number: ${{ github.event.pull_request.number }}
23+
token: ${{ secrets.GITHUB_TOKEN }}
24+
body: |
25+
> [!WARNING]
26+
> For Maintainers: When approving a PR, do not merge it directly. Instead add the `pr-pull` label.
27+
> This will trigger the `brew pr-pull` workflow, which will automatically add the bottle and merge the PR.
28+
1629
- name: Set up Homebrew
1730
id: set-up-homebrew
1831
uses: Homebrew/actions/setup-homebrew@master

0 commit comments

Comments
 (0)