@@ -55,13 +55,13 @@ jobs:
5555 prepare :
5656 runs-on : ubuntu-latest
5757 container :
58- image : ghcr.io/homebrew/ubuntu22.04:master
58+ image : ghcr.io/homebrew/ubuntu22.04:main
5959 outputs :
6060 runners : ${{steps.runner-matrix.outputs.result}}
6161 steps :
6262 - name : Set up Homebrew
6363 id : set-up-homebrew
64- uses : Homebrew/actions/setup-homebrew@master
64+ uses : Homebrew/actions/setup-homebrew@main
6565 with :
6666 core : true
6767 cask : false
8585 return {
8686 runner: s,
8787 container: {
88- image: "ghcr.io/homebrew/ubuntu22.04:master ",
88+ image: "ghcr.io/homebrew/ubuntu22.04:main ",
8989 options: "--user=linuxbrew -e GITHUB_ACTIONS_HOMEBREW_SELF_HOSTED"
9090 },
9191 workdir: "/github/home",
9696 });
9797
9898 - name : Ensure homebrew/core is up-to-date
99- if : endsWith(github.ref, 'master')
99+ if : endsWith(github.ref, 'main') || endsWith(github.ref, ' master')
100100 run : brew update
101101
102102 - name : Check for existing bottle
@@ -168,7 +168,7 @@ jobs:
168168 echo upload="${DISPATCH_BUILD_BOTTLE_UPLOAD}"
169169
170170 - name : Pre-test steps
171- uses : Homebrew/actions/pre-build@master
171+ uses : Homebrew/actions/pre-build@main
172172 with :
173173 bottles-directory : ${{ env.BOTTLES_DIR }}
174174 cleanup : ${{ matrix.cleanup }}
@@ -185,7 +185,7 @@ jobs:
185185
186186 - name : Post-build steps
187187 if : always()
188- uses : Homebrew/actions/post-build@master
188+ uses : Homebrew/actions/post-build@main
189189 with :
190190 runner : ${{ matrix.runner }}
191191 cleanup : ${{ matrix.cleanup }}
@@ -203,7 +203,7 @@ jobs:
203203 needs : bottle
204204 if : inputs.upload
205205 container :
206- image : ghcr.io/homebrew/ubuntu22.04:master
206+ image : ghcr.io/homebrew/ubuntu22.04:main
207207 env :
208208 HOMEBREW_SIMULATE_MACOS_ON_LINUX : 1
209209 GH_REPO : ${{github.repository}}
@@ -214,7 +214,7 @@ jobs:
214214 steps :
215215 - name : Set up Homebrew
216216 id : set-up-homebrew
217- uses : Homebrew/actions/setup-homebrew@master
217+ uses : Homebrew/actions/setup-homebrew@main
218218 with :
219219 core : true
220220 cask : false
@@ -229,12 +229,12 @@ jobs:
229229
230230 - name : Configure Git user
231231 id : git-user-config
232- uses : Homebrew/actions/git-user-config@master
232+ uses : Homebrew/actions/git-user-config@main
233233 with :
234234 username : ${{ (github.actor != 'github-actions[bot]' && github.actor) || 'BrewTestBot' }}
235235
236236 - name : Set up commit signing
237- uses : Homebrew/actions/setup-commit-signing@master
237+ uses : Homebrew/actions/setup-commit-signing@main
238238 with :
239239 signing_key : ${{ secrets.BREWTESTBOT_SSH_SIGNING_KEY }}
240240
@@ -245,7 +245,7 @@ jobs:
245245
246246 - name : Checkout branch for bottle commit
247247 working-directory : ${{steps.set-up-homebrew.outputs.repository-path}}
248- run : git checkout -b "$BOTTLE_BRANCH" origin/master
248+ run : git checkout -b "$BOTTLE_BRANCH" origin/HEAD
249249
250250 - name : Upload bottles to GitHub Packages
251251 id : upload
@@ -261,7 +261,7 @@ jobs:
261261 echo "head_sha=$(git -C "$HOMEBREW_CORE_PATH" rev-parse HEAD)" >> "$GITHUB_OUTPUT"
262262
263263 - name : Push commits
264- uses : Homebrew/actions/git-try-push@master
264+ uses : Homebrew/actions/git-try-push@main
265265 with :
266266 token : ${{secrets.HOMEBREW_GITHUB_PUBLIC_REPO_TOKEN}}
267267 directory : ${{steps.set-up-homebrew.outputs.repository-path}}
@@ -272,7 +272,7 @@ jobs:
272272
273273 - name : Open PR with bottle commit
274274 id : create-pr
275- uses : Homebrew/actions/create-pull-request@master
275+ uses : Homebrew/actions/create-pull-request@main
276276 with :
277277 token : ${{secrets.HOMEBREW_GITHUB_PUBLIC_REPO_TOKEN}}
278278 base : ${{github.ref}}
@@ -350,7 +350,7 @@ jobs:
350350 runs-on : ubuntu-latest
351351 steps :
352352 - name : Post comment on failure
353- uses : Homebrew/actions/post-comment@master
353+ uses : Homebrew/actions/post-comment@main
354354 with :
355355 token : ${{secrets.GITHUB_TOKEN}}
356356 issue : ${{inputs.issue}}
0 commit comments