Skip to content

Commit

Permalink
fix: goreleaser writes formula to dist/
Browse files Browse the repository at this point in the history
  • Loading branch information
ericnorris committed May 19, 2021
1 parent ab42f14 commit 72dc7f9
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,12 @@ jobs:

- name: Commit homebrew forumulaa
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
FILE_TO_COMMIT: Formula/terraform-demux.rb
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
export MESSAGE="chore: regenerate $FILE_TO_COMMIT"
export SHA=$(git rev-parse --verify main:$FILE_TO_COMMIT)
export CONTENT=$(base64 -i $FILE_TO_COMMIT)
gh api --method PUT /repos/:owner/:repo/contents/$FILE_TO_COMMIT \
export MESSAGE="chore: regenerate homebrew formula"
export SHA=$(git rev-parse --verify main:Formula/terraform-demux.rb)
export CONTENT=$(base64 -i dist/terraform-demux.rb)
gh api --method PUT /repos/:owner/:repo/contents/Formula/terraform-demux.rb \
--field message="$MESSAGE" \
--field content="$CONTENT" \
--field encoding="base64" \
Expand Down

0 comments on commit 72dc7f9

Please sign in to comment.