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: 5 additions & 4 deletions .github/workflows/update-homebrew-tap.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
name: Update Homebrew Tap

on:
release:
types: [published]
workflow_run:
workflows: [Build Binaries]
types: [completed]

permissions: {}

jobs:
update-tap:
runs-on: ubuntu-latest
if: ${{ !github.event.release.prerelease }}
if: ${{ github.event.workflow_run.conclusion == 'success' && startsWith(github.event.workflow_run.head_branch, 'v') }}
steps:
- name: Update Homebrew formula
env:
GH_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }}
RELEASE_TAG: ${{ github.event.release.tag_name }}
RELEASE_TAG: ${{ github.event.workflow_run.head_branch }}
run: |
set -euo pipefail

Expand Down
Loading