Skip to content

Commit

Permalink
Fixing homebrew workflow repo path
Browse files Browse the repository at this point in the history
  • Loading branch information
kenshaw committed Aug 25, 2022
1 parent 57368fa commit 69451ea
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/homebrew.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ jobs:
env:
HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.HOMEBREW_TOKEN }}
run: |
export HOMEBREW_PREFIX=$(brew --prefix)
export REPO_PATH=$(brew --prefix)/Homebrew/Library/Taps/xo/homebrew-xo
brew update
brew tap xo/xo
git config --file $HOMEBREW_PREFIX/Library/Taps/xo/homebrew-xo/.git/config user.name 'Kenneth Shaw'
git config --file $HOMEBREW_PREFIX/Library/Taps/xo/homebrew-xo/.git/config user.email '[email protected]'
git config --file $REPO_PATH/.git/config user.name 'Kenneth Shaw'
git config --file $REPO_PATH/.git/config user.email '[email protected]'
brew bump-formula-pr \
--no-audit \
--no-browse \
Expand All @@ -27,6 +27,6 @@ jobs:
--message="Update usql formula to ${{ github.ref_name }}" \
--url="https://github.com/xo/usql/archive/${{ github.ref_name }}.tar.gz" \
xo/xo/usql
cd $HOMEBREW_PREFIX/Library/Taps/xo/homebrew-xo
cd $REPO_PATH
git remote set_url origin "https://kenshaw:${{ secrets.HOMEBREW_TOKEN }}@github.com/xo/homebrew-xo.git"
git push origin master

0 comments on commit 69451ea

Please sign in to comment.