Skip to content

Commit

Permalink
fix(build): push 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 240063f commit bc02782
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,16 @@ jobs:

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

- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}

0 comments on commit bc02782

Please sign in to comment.