From 69451ea79e181af6c4dda0fabf336ca6759c62f0 Mon Sep 17 00:00:00 2001 From: Kenneth Shaw Date: Thu, 25 Aug 2022 10:45:37 +0700 Subject: [PATCH] Fixing homebrew workflow repo path --- .github/workflows/homebrew.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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