From 4fe0ec63345dd5e65e7234417d67a6e4a2ca4d3d Mon Sep 17 00:00:00 2001 From: sgoudham Date: Thu, 30 Jun 2022 01:20:31 +0100 Subject: [PATCH] ci: Allow manual bump of homebrew formula --- .github/workflows/manual-homebrew.yml | 32 +++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/manual-homebrew.yml diff --git a/.github/workflows/manual-homebrew.yml b/.github/workflows/manual-homebrew.yml new file mode 100644 index 0000000..0d2d805 --- /dev/null +++ b/.github/workflows/manual-homebrew.yml @@ -0,0 +1,32 @@ +name: bump-homebrew-formula + +on: + workflow_dispatch: + inputs: + tag-name: + description: 'The git tag name to bump the formula to' + required: true + +env: + bin: git-view + +jobs: + homebrew: + name: Bump Homebrew formula + runs-on: ubuntu-latest + steps: + - uses: mislav/bump-homebrew-formula-action@v2 + with: + create-pullrequest: true + formula-name: ${{ env.bin }} + formula-path: Formula/${{ env.bin }}.rb + tag-name: ${{ github.event.inputs.tag-name }} + download-url: https://github.com/sgoudham/${{ env.bin }}/releases/download/${{ github.event.inputs.tag-name }}/${{ env.bin }}-x86_64-apple-darwin.tar.gz + commit-message: | + {{formulaName}} -> {{version}} + + Created by https://github.com/mislav/bump-homebrew-formula-action + download-url: https://example.com/foo/${{ github.event.inputs.tag-name }}.tar.gz + env: + env: + COMMITTER_TOKEN: ${{ secrets.HOMEBREW }}