Skip to content

Commit 4b9433b

Browse files
committed
workflows: use --branch=main for brew pr-publish
`brew pr-publish` defaults to using the workflow from the `master` branch when the `--branch` flag is not specified. We could probably change the default of `pr-publish`, but that could break external users and likely needs a deprecation cycle. Let's just set `--branch=main` here for now instead.
1 parent e854ce5 commit 4b9433b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/automerge-from-merge-queue.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ jobs:
264264
cask: false
265265
test-bot: false
266266

267-
- run: brew pr-publish "$PR"
267+
- run: brew pr-publish --branch=main "$PR"
268268
env:
269269
HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
270270
PR: ${{ needs.status-check.outputs.pull-number }}

.github/workflows/automerge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ jobs:
194194
cask: false
195195
test-bot: false
196196

197-
- run: brew pr-publish "$PR"
197+
- run: brew pr-publish --branch=main "$PR"
198198
env:
199199
HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
200200
PR: ${{ needs.status-check.outputs.pull-number }}

0 commit comments

Comments
 (0)