Skip to content

Commit

Permalink
fix(ci): Move homebrew to a separate file
Browse files Browse the repository at this point in the history
  • Loading branch information
denysdovhan committed Jul 1, 2021
1 parent 9119f46 commit 554f065
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 9 deletions.
9 changes: 0 additions & 9 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,3 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: 🍺 Bump Homebrew Formula
uses: mislav/bump-homebrew-formula-action@v1.12
if: steps.semantic.outputs.new_release_published == 'true'
with:
formula-name: spaceship
tag-name: ${{ steps.semantic.outputs.new_release_version }}
env:
COMMITTER_TOKEN: ${{ secrets.HOMEBREW_GITHUB_PAT }}
19 changes: 19 additions & 0 deletions .github/workflows/homebrew.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: homebrew
on:
push:
tags: "v*"

jobs:
homebrew:
name: Bump Homebrew
runs-on: ubuntu-latest
steps:
- name: 🛑 Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.0

- name: 🍺 Bump Homebrew Formula
uses: mislav/bump-homebrew-formula-action@v1
with:
formula-name: spaceship
env:
COMMITTER_TOKEN: ${{ secrets.HOMEBREW_GITHUB_PAT }}

0 comments on commit 554f065

Please sign in to comment.