summaryrefslogtreecommitdiffstats
path: root/.github/workflows/brew.yml
blob: 35e863f540d18513a1954a65365cc476ce7113d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
name: brew update

on:
  # only manually
  workflow_dispatch:
    inputs:
      tag-name:
        required: true
        description: 'release tag'

jobs:
  update_brew:
    runs-on: ubuntu-latest
    steps:
    - name: Bump homebrew-core formula
      uses: mislav/bump-homebrew-formula-action@v3
      env:
        COMMITTER_TOKEN: ${{ secrets.BREW_TOKEN }}
      with:
        formula-name: gitui
        # https://github.com/mislav/bump-homebrew-formula-action/issues/58
        formula-path: Formula/g/gitui.rb
        tag-name: ${{ github.event.inputs.tag-name }}