Skip to content

Commit

Permalink
Homebrew bump formula on release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Jan 19, 2023
1 parent 7fa21cf commit 598f17e
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/release-homebrew.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Bump Homebrew formula

# More triggers
# https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows#release

# GitHub event payload
# https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#release

on:
release:
types: [published]

jobs:
tweet:
runs-on: ubuntu-latest
steps:
- name: Update Homebrew formula
uses: dawidd6/action-homebrew-bump-formula@v3
with:
token: ${{ secrets.PHPSTAN_BOT_TOKEN }}
formula: phpstan
tag: ${{ github.event.release.tag_name }}
revision: ${{ github.event.release.target_commitish }}

0 comments on commit 598f17e

Please sign in to comment.