diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index a3837de6..aa0e45a0 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -127,7 +127,7 @@ jobs: # Install PHP at a fixed version - uses: shivammathur/setup-php@master with: - php-version: '7.3.8' + php-version: "7.3.8" # Install Mercurial (pre-installed on linux, installed from pip on macos # and from choco on windows), @@ -139,7 +139,7 @@ jobs: - name: Install Mercurial (windows) if: matrix.os == 'windows-latest' run: choco install hg - + # Install Terraform at a fixed version - uses: volcano-coffee-company/setup-terraform@v1 with: @@ -187,6 +187,21 @@ jobs: env: CRATES_IO_TOKEN: ${{ secrets.CRATES_IO_TOKEN }} + update_brew_formula: + if: startsWith(github.ref, 'refs/tags/v') + name: Update Brew Formula + runs-on: macos-latest + steps: + - uses: actions/checkout@v1 + - run: | + echo "https://starship-bot:$GITHUB_TOKEN@github.com" > ~/.git-credentials + git config --global credential.helper store + git config --global user.name "Starship Bot" + git config --global user.email "bot@starship.rs" + brew bump-formula-pr --url=https://github.com/starship/starship/archive/$(git describe --tags).tar.gz --message="Automated release pull request using continuous integration." --no-browse -v starship --force + env: + GITHUB_TOKEN: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }} + # Build sources for every OS github_build: if: startsWith(github.ref, 'refs/tags/v')