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