mirror of
https://github.com/Llewellynvdm/starship.git
synced 2024-11-28 07:46:28 +00:00
ci: Automate the bumping of the starship Brew formula (#143)
This commit is contained in:
parent
160a79fa06
commit
5a2bd8162d
@ -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
|
||||
|
14
ci/bump-brew-formula.yml
Normal file
14
ci/bump-brew-formula.yml
Normal file
@ -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
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user