Skip to content

Update Homebrew Formula (Dispatch) #2

Update Homebrew Formula (Dispatch)

Update Homebrew Formula (Dispatch) #2

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:

Check failure on line 14 in .github/workflows/update-formula.yml

View workflow run for this annotation

GitHub Actions / Update Homebrew Formula (Dispatch)

Invalid workflow file

The workflow is not valid. .github/workflows/update-formula.yml (Line: 14, Col: 3): The workflow must contain at least one job with no dependencies.
name: Dispatch Homebrew update
needs:
- publish
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