0.4.2 #6
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |