summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatan Kushner <hello@matchai.me>2019-08-12 21:29:14 -0400
committerGitHub <noreply@github.com>2019-08-12 21:29:14 -0400
commit5a2bd8162d4aebbe19667b0e37e51440059bd445 (patch)
tree0631d9290e3ddd9b815b1af5a50d759d1c4fb5f0
parent160a79fa062de954f3f66761032cf418589f191e (diff)
ci: Automate the bumping of the starship Brew formula (#143)
-rw-r--r--azure-pipelines.yml6
-rw-r--r--ci/bump-brew-formula.yml14
-rw-r--r--ci/install-cross-rust.yml2
3 files changed, 21 insertions, 1 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 73118a3f9..50c5365c5 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -81,3 +81,9 @@ stages:
parameters:
name: cargo_publish
displayName: Publish to Crates.io
+
+ # Open a PR on Homebrew/homebrew-core with an update to the starship formula
+ - template: ci/bump-brew-formula.yml
+ parameters:
+ name: bump_brew_formula
+ displayName: Bump the Homebrew formula
diff --git a/ci/bump-brew-formula.yml b/ci/bump-brew-formula.yml
new file mode 100644
index 000000000..c44005d5b
--- /dev/null
+++ b/ci/bump-brew-formula.yml
@@ -0,0 +1,14 @@
+jobs:
+ - job: ${{ parameters.name }}
+ displayName: ${{ parameters.displayName }}
+ pool:
+ vmImage: macOS-10.13
+ steps:
+ - script: |
+ 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 "https://matchai:${HOMEBREW_GITHUB_API_TOKEN}@github.com" >> ~/.git-credentials
+ brew bump-formula-pr starship --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
diff --git a/ci/install-cross-rust.yml b/ci/install-cross-rust.yml
index 327a9c979..bc842b677 100644
--- a/ci/install-cross-rust.yml
+++ b/ci/install-cross-rust.yml
@@ -37,7 +37,7 @@ steps:
git checkout 718a19c
git merge -m "No pseudo tty" pitkley/docker-no-pseudo-tty
cargo install --force --path .
- displayName: Instaling cross supprot
+ displayName: Install cross
# All platforms
- script: |
rustup -V