diff --git a/.github/workflows/publish-commit-bottles.yml b/.github/workflows/publish-commit-bottles.yml index 4c81e769290c0..0f9e0c28126a2 100644 --- a/.github/workflows/publish-commit-bottles.yml +++ b/.github/workflows/publish-commit-bottles.yml @@ -241,6 +241,8 @@ jobs: runs-on: ${{inputs.large_runner && 'homebrew-large-bottle-upload' || 'ubuntu-22.04'}} container: image: ghcr.io/homebrew/ubuntu22.04:master + volumes: + - /mnt:/mnt permissions: id-token: write # for `generate build provenance` contents: write # for `generate build provenance` @@ -296,6 +298,7 @@ jobs: HOMEBREW_GITHUB_PACKAGES_USER: brewtestbot HOMEBREW_GITHUB_PACKAGES_TOKEN: ${{secrets.HOMEBREW_CORE_GITHUB_PACKAGES_TOKEN}} EXPECTED_SHA: ${{needs.check.outputs.head_sha}} + LARGE_RUNNER: ${{inputs.large_runner}} run: | local_git_head="$(git rev-parse HEAD)" remote_git_head="$(git ls-remote origin "pull/$PR/head" | cut -f1)" @@ -310,6 +313,13 @@ jobs: exit 1 fi + if [ -z "${LARGE_RUNNER}" ] || [ "${LARGE_RUNNER}" == "false" ] + then + sudo install -o "$(id -u)" -d "$(id -g)" /mnt/homebrew + export HOMEBREW_CACHE=/mnt/homebrew/cache + export HOMEBREW_TEMP=/mnt/homebrew/temp + fi + # Don't quote arguments that might be empty; this causes errors. brew pr-pull \ --debug \