Skip to content

Commit

Permalink
added auto bump brew action
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramilito committed Sep 7, 2022
1 parent 33ba9c9 commit 0eda332
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .github/workflows/bump_brew.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
on:
workflow_call:
secrets:
TOKEN:
required: true

name: "[reusable] bump brew"
jobs:
bump_brew:
name: Update Homebrew formula
runs-on: ubuntu-latest
steps:
- name: Update Homebrew formula
uses: dawidd6/action-homebrew-bump-formula@v3
with:
# Required, custom GitHub access token with the 'public_repo' and 'workflow' scopes
token: ${{secrets.TOKEN}}
# Formula name, required
formula: kubesess
6 changes: 5 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,8 @@ jobs:
package_and_release:
if: github.event_name == 'release'
uses: ./.github/workflows/package_and_release.yaml

bump_brew:
if: github.event_name == 'release'
uses: ./.github/workflows/bump_brew.yaml
secrets:
TOKEN: ${{ secrets.HOMEBREW }}

0 comments on commit 0eda332

Please sign in to comment.