summaryrefslogtreecommitdiffstats
path: root/ci/bump-brew-formula.yml
blob: 39825cf010cf2481e5883eb4f01e80aef8e4be1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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 'export HOMEBREW_GITHUB_API_TOKEN=${HOMEBREW_GITHUB_API_TOKEN}' >> ~/.bash_profile
          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
        displayName: Bump the Homebrew formula