diff --git a/.github/workflows/homebrew.yml b/.github/workflows/homebrew.yml index 30207ccc3c0..3c97dcc662e 100644 --- a/.github/workflows/homebrew.yml +++ b/.github/workflows/homebrew.yml @@ -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 'ken@usql.app' + git config --file $REPO_PATH/.git/config user.name 'Kenneth Shaw' + git config --file $REPO_PATH/.git/config user.email 'ken@usql.app' brew bump-formula-pr \ --no-audit \ --no-browse \ @@ -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