From dc9b857c5d846eddba9a22413b6790f6b3db47b1 Mon Sep 17 00:00:00 2001 From: William Woodruff Date: Wed, 8 May 2024 12:54:18 -0400 Subject: [PATCH] Update .github/workflows/publish-commit-bottles.yml Co-authored-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> --- .github/workflows/publish-commit-bottles.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-commit-bottles.yml b/.github/workflows/publish-commit-bottles.yml index 348e9bf2fadcd..455c5a5fbdd59 100644 --- a/.github/workflows/publish-commit-bottles.yml +++ b/.github/workflows/publish-commit-bottles.yml @@ -344,6 +344,7 @@ jobs: HOMEBREW_GPG_PASSPHRASE: ${{ secrets.BREWTESTBOT_GPG_SIGNING_SUBKEY_PASSPHRASE }} HOMEBREW_GITHUB_PACKAGES_USER: brewtestbot HOMEBREW_GITHUB_PACKAGES_TOKEN: ${{secrets.HOMEBREW_CORE_GITHUB_PACKAGES_TOKEN}} + REPO_PATH: ${{steps.set-up-homebrew.outputs.repository-path}} run: | # Don't quote arguments that might be empty; this causes errors when `brew` # interprets them as empty arguments when we want `brew` to ignore them instead. @@ -354,7 +355,7 @@ jobs: ${{inputs.warn_on_upload_failure && '--warn-on-upload-failure' || ''}} \ "$PR" - echo "head_sha=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT" + echo "head_sha=$(git -C "$REPO_PATH" rev-parse HEAD)" >> "$GITHUB_OUTPUT" - name: Push commits uses: Homebrew/actions/git-try-push@master