Skip to content

Commit 1d0c8bb

Browse files
authored
Refactor bottle workflow for git config and brew command
Updated the bottle workflow to configure git for merges and adjusted the brew bottle command to include root URL.
1 parent ebbfcb2 commit 1d0c8bb

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

.github/workflows/bottle.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -198,18 +198,12 @@ jobs:
198198
echo "tag=${TAG}" >> "$GITHUB_OUTPUT"
199199
echo "root_url=${ROOT_URL}" >> "$GITHUB_OUTPUT"
200200
201-
- name: Create temp tap with checked-out formula (merge job)
201+
- name: Configure git for bottle merge
202202
run: |
203203
set -euo pipefail
204-
205204
git config --global user.email "github-actions[bot]@users.noreply.github.com"
206205
git config --global user.name "github-actions[bot]"
207206
208-
brew tap-new mflowcode/local
209-
TAP_DIR="$(brew --repository)/Library/Taps/mflowcode/homebrew-local"
210-
mkdir -p "${TAP_DIR}/Formula"
211-
cp Formula/mfc.rb "${TAP_DIR}/Formula/mfc.rb"
212-
213207
- name: Download all bottle artifacts
214208
uses: actions/download-artifact@v4
215209
with:
@@ -262,7 +256,7 @@ jobs:
262256
BEFORE_SHA=$(git rev-parse HEAD)
263257
echo "HEAD before merge: ${BEFORE_SHA}"
264258
265-
brew bottle --merge --write "${JSON_BOTTLES[@]}"
259+
brew bottle --merge --write --root-url="${{ steps.meta.outputs.root_url }}" "${JSON_BOTTLES[@]}"
266260
267261
AFTER_SHA=$(git rev-parse HEAD)
268262
echo "HEAD after merge: ${AFTER_SHA}"

0 commit comments

Comments
 (0)