summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatan Kushner <hello@matchai.me>2019-10-04 23:36:49 +0900
committerMatan Kushner <hello@matchai.me>2019-10-04 23:36:49 +0900
commit3ef9a953c11b0042f2b7e59dc1610685f9c84c74 (patch)
treec479f2de2e76bebd88c6b8d14b9ca67ed937b7af
parentfcaf2592e6c5fdd78c84dea8a59d2c14e12497e2 (diff)
ci: Add brew bump formula version
-rw-r--r--.github/workflows/workflow.yml18
1 files changed, 16 insertions, 2 deletions
diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml
index 12da852b9..e70e48e73 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