fix(ci): configure git auth for homebrew-tap push

Set remote URL with x-access-token so git push can authenticate
to the homebrew-tap repository using HOMEBREW_TAP_TOKEN.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Snider 2026-02-05 01:42:04 +00:00
parent 022c1f08b1
commit 748ff4df7d

View file

@ -171,8 +171,11 @@ jobs:
LINUX_AMD64=$(cat dist/core-linux-amd64.tar.gz.sha256)
LINUX_ARM64=$(cat dist/core-linux-arm64.tar.gz.sha256)
# Clone tap repo
# Clone tap repo (configure auth for push)
gh repo clone host-uk/homebrew-tap /tmp/tap -- --depth=1
cd /tmp/tap
git remote set-url origin "https://x-access-token:${GH_TOKEN}@github.com/host-uk/homebrew-tap.git"
cd -
mkdir -p /tmp/tap/Formula
# Write formula