Skip to content

Commit

Permalink
ci: use workflow trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
owenvoke committed Jun 21, 2022
1 parent 8f5c9a5 commit 2bcb067
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,21 @@ jobs:
app_id: ${{ secrets.WORKSOME_INTERNAL_APP_ID }}
repository: worksome/homebrew-tap

- name: Publish to Brew Tap
uses: mislav/bump-homebrew-formula-action@v2
- name: Get version
id: version
uses: dawidd6/action-get-tag@v1
with:
formula-name: graphlint
formula-path: Formula/graphlint.rb
homebrew-tap: worksome/homebrew-tap
push-to: worksome/homebrew-tap
base-branch: main
tag-name: ${{ github.event.release.tag_name }}
create-pullrequest: false
download-url: https://github.com/worksome/graphlint/releases/download/${{ github.event.release.tag_name }}/graphlint
commit-message: 'chore({{formulaName}}): update to version {{version}}'
env:
COMMITTER_TOKEN: ${{ steps.generate_token.outputs.token }}
strip_v: true # Strip 'v' prefix

- name: Trigger Homebrew Tap Update
uses: benc-uk/workflow-dispatch@v1
with:
workflow: Trigger Formula
repo: worksome/homebrew-tap
token: ${{ steps.generate_token.outputs.token }}
inputs: |
{
"name": "graphlint",
"version": "${{ steps.version.outputs.tag }}",
"download-url": "https://github.com/worksome/graphlint/releases/download/${{ github.event.release.tag_name }}/graphlint"
}

0 comments on commit 2bcb067

Please sign in to comment.