First draft of GitHub Action for bumping homebrew on tag

This commit is contained in:
Oscar Batori
2020-06-09 20:41:58 -07:00
parent 8d5d6057a5
commit 46eef772c8

21
.github/workflows/bump-brew-formula.yml vendored Normal file
View File

@@ -0,0 +1,21 @@
on:
push:
tags: 'v*'
jobs:
homebrew:
name: Bump Dolt Homebrew formula
runs-on: ubuntu-latest
steps:
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- uses: mislav/bump-homebrew-formula-action@v1
with:
formula-name: dolt
homebrew-tap: Homebrew/homebrew-core
base-branch: release
download-url: https://github.com/liquidata-inc/dolt/archive/v${{steps.get_version.outputs.VERSION}}.tar.gz
commit-message: ${{formulaName}} ${{version}}
env:
COMMITTER_TOKEN: ${{secrets.HOMEBREW_COMMITTER_TOKEN}}