From 7619e448027df6edfe2f1b72d8dfd13c25e54fb0 Mon Sep 17 00:00:00 2001 From: Hongming Wang Date: Sun, 19 Apr 2026 05:55:45 -0700 Subject: [PATCH] ci(promote-latest): suppress brew cleanup that hits perm-denied on shared runner --- .github/workflows/promote-latest.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/promote-latest.yml b/.github/workflows/promote-latest.yml index 92eb0be3..0729191c 100644 --- a/.github/workflows/promote-latest.yml +++ b/.github/workflows/promote-latest.yml @@ -37,6 +37,14 @@ jobs: runs-on: [self-hosted, macos, arm64] steps: - name: Ensure crane installed + # HOMEBREW_NO_INSTALL_CLEANUP + HOMEBREW_NO_AUTO_UPDATE stop + # brew from touching unrelated symlinks in /opt/homebrew owned + # by other users on this shared runner — cleanup was exiting + # non-zero even though crane itself installed successfully. + env: + HOMEBREW_NO_INSTALL_CLEANUP: "1" + HOMEBREW_NO_AUTO_UPDATE: "1" + HOMEBREW_NO_ENV_HINTS: "1" run: | if ! command -v crane >/dev/null 2>&1; then brew install crane