Skip to content

Update Homebrew Formula (Dispatch) #7

Update Homebrew Formula (Dispatch)

Update Homebrew Formula (Dispatch) #7

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
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 '{"event_type": "update", "client_payload": {"version": "${{ github.event.inputs.version }}"}}' \
'https://api.github.com/repos/3j14/homebrew-bumgr/dispatches'