summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatan Kushner <hello@matchai.me>2019-08-13 14:58:36 -0400
committerMatan Kushner <hello@matchai.me>2019-08-13 14:58:36 -0400
commitabf5311664fbaf7c6696d4623a87ab9935b9a9d7 (patch)
tree7b19488a8a0ccbe0a51ac5a0de62857f7f2a467a
parent6c120dcd2f5aaf838b4bdf4db6399bc3cdd6d4a9 (diff)
ci: Use the credential.helper config for git
-rw-r--r--ci/bump-brew-formula.yml6
1 files changed, 3 insertions, 3 deletions
diff --git a/ci/bump-brew-formula.yml b/ci/bump-brew-formula.yml
index 39825cf01..b0c0b86ac 100644
--- a/ci/bump-brew-formula.yml
+++ b/ci/bump-brew-formula.yml
@@ -8,8 +8,8 @@ jobs:
GIT_TAG="$(Build.SourceBranch)"
git config --global user.name "matchai"
git config --global user.email "hello@matchai.me"
- git config --global config.helper store
- echo 'export HOMEBREW_GITHUB_API_TOKEN=${HOMEBREW_GITHUB_API_TOKEN}' >> ~/.bash_profile
+ git config --global credential.helper store
+ echo "https://matchai:$HOMEBREW_GITHUB_API_TOKEN@github.com" >> ~/.git-credentials
brew update
- brew bump-formula-pr --url=https://github.com/starship/starship/archive/${GIT_TAG}.tar.gz --message="Automated release pull request using continuous integration." --no-browse -v starship
+ brew bump-formula-pr --url=https://github.com/starship/starship/archive/$GIT_TAG.tar.gz --message="Automated release pull request using continuous integration." --no-browse -v starship
displayName: Bump the Homebrew formula