ci: Add brew bump formula version
This commit is contained in:
parent
fcaf2592e6
commit
3ef9a953c1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue