Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .github/workflows/release-brew.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,14 @@ permissions:
jobs:
publish:
name: Publish formula to homebrew-tap
if: ${{ github.event.workflow_run.conclusion == 'success' && startsWith(github.event.workflow_run.head_branch, 'moq-') }}
# workflow_run has the base repository's privileges and this job checks out
# the triggering commit, so accept only a successful tag push in this
# repository: a fork PR can rename a workflow and its branch to match.
if: >-
github.event.workflow_run.conclusion == 'success' &&
github.event.workflow_run.event == 'push' &&
github.event.workflow_run.head_repository.full_name == github.repository &&
startsWith(github.event.workflow_run.head_branch, 'moq-')
runs-on: ubuntu-latest

steps:
Expand Down
Loading