Skip to content

Update Homebrew Formula (Dispatch) #4

Update Homebrew Formula (Dispatch)

Update Homebrew Formula (Dispatch) #4

name: Update Homebrew Formula (Dispatch)
on:
workflow_dispatch:
inputs:
version:
description: 'Bumgr version used in the Formula'
required: true
permissions:
contents: read
jobs:
dispatch-homebrew-update:
name: Dispatch Homebrew update
runs-on: ubuntu-latest
env:
repo: '3j14/homebrew-bumgr'
data: '{"event_type": "update", "client_payload": {"version": "${{ github.event.inputs.version }}"}'
timeout-minutes: 1
steps:
- name: Dispatch Homebrew update
run: |
curl -H "Accept: application/vnd.github.everest-preview+json" \
-H "Authorization: token ${{ secrets.HOMEBREW_BUMGR_DISPATCH_PAT }}" \
--request POST \
--data '$data' 'https://api.github.com/repos/$repo/dispatches'