GHA: set HOMEBREW_NO_AUTO_UPDATE=1 for Linuxbrew

In an attempt to make `brew install` commands initialize faster.

Often this command started with 20-50 seconds of delay before this
patch. This is an attempt to make it launch faster.

Cherry-picked from #18736
This commit is contained in:
Viktor Szakats 2025-09-25 14:38:48 +02:00
parent 5b8c80684b
commit edbf610c6a
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
3 changed files with 4 additions and 4 deletions

View file

@ -72,7 +72,7 @@ jobs:
- name: 'typos'
run: |
/home/linuxbrew/.linuxbrew/bin/brew install typos-cli
HOMEBREW_NO_AUTO_UPDATE=1 /home/linuxbrew/.linuxbrew/bin/brew install typos-cli
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
typos --version
.github/scripts/typos.sh
@ -118,7 +118,7 @@ jobs:
timeout-minutes: 5
steps:
- name: 'install prereqs'
run: /home/linuxbrew/.linuxbrew/bin/brew install shellcheck zizmor
run: HOMEBREW_NO_AUTO_UPDATE=1 /home/linuxbrew/.linuxbrew/bin/brew install shellcheck zizmor
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
with: