1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-11-28 07:46:28 +00:00

ci: Add brew bump formula version

This commit is contained in:
Matan Kushner 2019-10-04 23:36:49 +09:00
parent fcaf2592e6
commit 3ef9a953c1
No known key found for this signature in database
GPG Key ID: 4B98C3A8949CA8A4

View File

@ -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