From bd323561029d5f5d6469f5efe604205706a4a642 Mon Sep 17 00:00:00 2001 From: Ruoyu Zhong Date: Wed, 11 Sep 2024 21:05:08 +0800 Subject: [PATCH] workflows/dispatch-build-bottle: move `setup-homebrew` step to beginning This applies necessary fixes for the subsequent steps to run without root permissions. --- .github/workflows/dispatch-build-bottle.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/dispatch-build-bottle.yml b/.github/workflows/dispatch-build-bottle.yml index 45b56f87c1ef4..b94ec500cf7f4 100644 --- a/.github/workflows/dispatch-build-bottle.yml +++ b/.github/workflows/dispatch-build-bottle.yml @@ -50,10 +50,17 @@ jobs: runs-on: ubuntu-22.04 container: image: ghcr.io/homebrew/ubuntu22.04:master - options: --user=root outputs: runners: ${{steps.runner-matrix.outputs.result}} steps: + - name: Set up Homebrew + id: set-up-homebrew + uses: Homebrew/actions/setup-homebrew@master + with: + core: true + cask: false + test-bot: false + - name: Prepare runner matrix id: runner-matrix uses: actions/github-script@v7 @@ -82,14 +89,6 @@ jobs: return {runner: s, cleanup: true}; }); - - name: Set up Homebrew - id: set-up-homebrew - uses: Homebrew/actions/setup-homebrew@master - with: - core: true - cask: false - test-bot: false - - name: Check for existing bottle shell: brew ruby {0} env: