Skip to content

0.4.2

0.4.2 #6

name: "Push Release to Brew"
on:
release:
types: [published]
jobs:
update-homebrew:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.TOKEN }}
repository: epartment/homebrew-roll
- name: 'Update Version'
env:
VERSION: ${{ github.event.release.tag_name }}
run: |-
sudo apt-get install -y curl libdigest-sha-perl gettext-base
curl "https://codeload.github.com/epartment/rolldev/tar.gz/refs/tags/${VERSION}" -o release.tar.gz
export HASH=$(shasum -a256 release.tar.gz | head -n1 | awk '{print $1;}')
envsubst '$HASH,$VERSION' < Formula/roll.rb.template > Formula/roll.rb
git config user.name github-actions
git config user.email [email protected]
git add Formula/roll.rb
git commit -m "Mark v${VERSION}"
git push