Skip to content

Commit

Permalink
fix(build): update homebrew formula
Browse files Browse the repository at this point in the history
  • Loading branch information
Rickard Natt och Dag committed Nov 19, 2020
1 parent 744086f commit 48d1e2a
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,17 +107,19 @@ jobs:
if: ${{ success() }}
needs: [test, publish]
steps:
- name: Checkout Formula
uses: actions/checkout@v2
with:
repository: opendevtools/homebrew-supreme

- name: Create and push updated Homebrew formula
run: |
git config --global user.email "nattochdag@hey.com"
git config --global user.name "Rickard Natt och Dag"
git clone https://github.com/opendevtools/homebrew-supreme.git
cd homebrew-supreme
git config user.email "nattochdag@hey.com"
git config user.name "Rickard Natt och Dag"
cat template.rb | sed -e 's/{{version}}/'"$VERSION"'/g' -e 's/{{sha}}/'"$SHA"'/g' > Formula/supreme.rb
git add -A
git add .
git commit -m "feat(release): $VERSION"
git push
env:
SHA: ${{ needs.publish.outputs.sha }}
VERSION: ${{ needs.test.outputs.release }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 48d1e2a

Please sign in to comment.