From 808daa44e1cf9b254173deffc7fc86431d1a723a Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Mon, 24 May 2021 16:47:55 -0700 Subject: [PATCH] fix: update git push to cdrci repo in brew-bump --- CHANGELOG.md | 4 ++++ ci/steps/brew-bump.sh | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ca8939af..62d307a8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -58,6 +58,10 @@ VS Code v0.00.0 - chore: cross-compile docker images with buildx #3166 @oxy - chore: update node to v14 #3458 @oxy +### Development + +- fix(publish): update cdrci fork in brew-bump.sh #3468 @jsjoeio + ## 3.10.2 VS Code v1.56.1 diff --git a/ci/steps/brew-bump.sh b/ci/steps/brew-bump.sh index 4e450025..e16ab559 100755 --- a/ci/steps/brew-bump.sh +++ b/ci/steps/brew-bump.sh @@ -26,7 +26,10 @@ main() { git merge upstream/master echo "Pushing changes to cdrci/homebrew-core fork on GitHub" - git push origin master + # Source: https://serverfault.com/a/912788 + # shellcheck disable=SC2016,SC2028 + echo '#!/bin/sh\nexec echo "$HOMEBREW_GITHUB_API_TOKEN"' >"$HOME"/.git-askpass.sh + GIT_ASKPASS="$HOME/.git-askpass.sh" git push https://cdrci@github.com/cdrci/homebrew-core.git --all # Find the docs for bump-formula-pr here # https://github.com/Homebrew/brew/blob/master/Library/Homebrew/dev-cmd/bump-formula-pr.rb#L18