2021-10-06 12:43:18 -07:00
|
|
|
name: Homebrew
|
|
|
|
on:
|
|
|
|
release:
|
|
|
|
types: [published]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
notify:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Notify Homebrew Repo 🙋🏾♀️
|
2022-10-13 17:52:51 -07:00
|
|
|
uses: actions/github-script@d556feaca394842dc55e4734bf3bb9f685482fa0
|
2021-10-06 12:43:18 -07:00
|
|
|
with:
|
|
|
|
github-token: ${{ secrets.GH_PAT }}
|
|
|
|
script: |
|
|
|
|
await github.request('POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches', {
|
|
|
|
owner: 'jandedobbeleer',
|
|
|
|
repo: 'homebrew-oh-my-posh',
|
|
|
|
workflow_id: 'release.yml',
|
|
|
|
ref: 'main',
|
|
|
|
inputs: {"version": process.env.GITHUB_REF.replace('refs/tags/v', '')}
|
|
|
|
})
|