summaryrefslogtreecommitdiffstats
path: root/.github/workflows/homebrew.yml
blob: f0927790d588cd618b2e04f467cd92d1e00ee23e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
name: Bump Homebrew formula

on:
  push:
    tags:
      - 'v*'

jobs:
  publish:
    runs-on: ubuntu-latest
    steps:
      - name: Get tag
        id: tag
        run: echo "::set-output name=tag::${GITHUB_REF##*/}"
      - name: Bump Homebrew formula
        uses: dawidd6/action-homebrew-bump-formula@v1.1.0
        with:
          token: ${{secrets.GITHUB_API_TOKEN}}
          formula: lazygit
          url: "https://github.com/${{github.repository}}/archive/${{steps.tag.outputs.tag}}.tar.gz"