From 3ef9a953c11b0042f2b7e59dc1610685f9c84c74 Mon Sep 17 00:00:00 2001 From: Matan Kushner Date: Fri, 4 Oct 2019 23:36:49 +0900 Subject: [PATCH] ci: Add brew bump formula version --- .github/workflows/workflow.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 12da852b..e70e48e7 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -152,9 +152,23 @@ jobs: env: CRATES_IO_TOKEN: ${{ secrets.CRATES_IO_TOKEN }} + # Create a PR to bump the brew formula version + brew_bump_formula: + if: startsWith(github.ref, 'refs/tags/v') + name: Bump Brew Formula + needs: [test, docker_test] + runs-on: macos-latest + steps: + - uses: actions/checkout@v1 + - run: export COMMIT_TAG=$(git describe --tags) + - run: brew bump-formula-pr --url=https://github.com/starship/starship/archive/$COMMIT_TAG.tar.gz --message="Automated release pull request using continuous integration." --no-browse -v starship --force + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + # Create GitHub release with Rust build targets and release notes github_release: if: startsWith(github.ref, 'refs/tags/v') - name: Create GitHub release + name: Create GitHub Release needs: [test, docker_test] strategy: fail-fast: false @@ -211,7 +225,7 @@ jobs: # Temporary fix for https://github.com/actions/setup-go/issues/14 export PATH=$PATH:$(go env GOPATH)/bin go get -u github.com/git-chglog/git-chglog/cmd/git-chglog - git-chglog -c .github/chglog/release.yml $(git describe --tags $(git rev-list --tags --max-count=1)) > RELEASE.txt + git-chglog -c .github/chglog/release.yml $(git describe --tags) > RELEASE.txt - name: Create GitHub release ${{ matrix.target }} uses: softprops/action-gh-release@v1