mirror of
https://github.com/Llewellynvdm/starship.git
synced 2024-12-01 09:13:54 +00:00
ci: Add brew bump formula version
This commit is contained in:
parent
fcaf2592e6
commit
3ef9a953c1
18
.github/workflows/workflow.yml
vendored
18
.github/workflows/workflow.yml
vendored
@ -152,9 +152,23 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
CRATES_IO_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
|
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:
|
github_release:
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
name: Create GitHub release
|
name: Create GitHub Release
|
||||||
needs: [test, docker_test]
|
needs: [test, docker_test]
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
@ -211,7 +225,7 @@ jobs:
|
|||||||
# Temporary fix for https://github.com/actions/setup-go/issues/14
|
# Temporary fix for https://github.com/actions/setup-go/issues/14
|
||||||
export PATH=$PATH:$(go env GOPATH)/bin
|
export PATH=$PATH:$(go env GOPATH)/bin
|
||||||
go get -u github.com/git-chglog/git-chglog/cmd/git-chglog
|
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 }}
|
- name: Create GitHub release ${{ matrix.target }}
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
|
Loading…
Reference in New Issue
Block a user