Skip to content

Commit

Permalink
Automate updating brew tap repository #40
Browse files Browse the repository at this point in the history
  • Loading branch information
kyu08 committed Aug 7, 2023
1 parent 977418c commit 9ecd320
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
on:
push:
pull_request:
# on:
# push:
# tags: 'v*'

jobs:
homebrew:
name: Bump Homebrew formula
runs-on: ubuntu-latest
steps:
- name: Extract version
id: extract-version
run: |
printf "::set-output name=%s::%s\n" tag-name "${GITHUB_REF#refs/tags/}"
- name: Extract version
id: extract-version2
run: |
echo "::set-output name=tag-name::${GITHUB_REF#refs/tags/}"
# - uses: mislav/bump-homebrew-formula-action@v2
# if: ${{ !contains(github.ref, '-') }} # skip prereleases
# with:
# formula-name: my_formula
# formula-path: Formula/my_formula.rb
# homebrew-tap: Homebrew/homebrew-core
# base-branch: master
# download-url: https://example.com/foo/${{ steps.extract-version.outputs.tag-name }}.tar.gz
# commit-message: |
# {{formulaName}} {{version}}
#
# Created by https://github.com/mislav/bump-homebrew-formula-action
# env:
# COMMITTER_TOKEN: ${{ secrets.COMMITTER_TOKEN }}
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 9ecd320

Please sign in to comment.