summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorDario Vladović <d.vladimyr@gmail.com>2020-06-26 17:28:34 +0200
committerGitHub <noreply@github.com>2020-06-26 11:28:34 -0400
commitc97f9aef982d8cbc54e4c28eb8e3e2d25fe48136 (patch)
treef51442086c541d67be62dc750297ee0ce11c1eae /.github
parente034d51cb288f44eae2bc40b3f6ead5b8d1012a9 (diff)
ci: use action to bump Homebrew formula (#1391)
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/workflow.yml20
1 files changed, 5 insertions, 15 deletions
diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml
index 6ea1eba33..b8b0f7e7f 100644
--- a/.github/workflows/workflow.yml
+++ b/.github/workflows/workflow.yml
@@ -173,23 +173,13 @@ jobs:
update_brew_formula:
if: startsWith(github.ref, 'refs/tags/v')
name: Update Brew Formula
- runs-on: macos-latest
+ runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v2
- - run: |
- echo "https://matchai:$HOMEBREW_GITHUB_API_TOKEN@github.com" > ~/.git-credentials
- git config --global credential.helper store
- git config --global user.name "Matan Kushner"
- git config --global user.email "hello@matchai.dev"
-
- cd $(brew --repo homebrew/core)
- git fetch origin
- sudo git reset --hard origin/master
- cd -
-
- brew bump-formula-pr --url=https://github.com/starship/starship/archive/$(git describe --tags).tar.gz --message="Automated release pull request using continuous integration." --no-browse -v starship --force
+ - uses: mislav/bump-homebrew-formula-action@v1
+ with:
+ formula-name: starship
env:
- HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }}
+ COMMITTER_TOKEN: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }}
# Build sources for every OS
github_build: