Skip to content

Commit

Permalink
Added homebrew formula action (#558)
Browse files Browse the repository at this point in the history
* Added homebrew formula action to push-to-npm.yml

Signed-off-by: Rlin232 <rlin@mitre.org>

* Moved workflow to different yml file

Signed-off-by: Rlin232 <rlin@mitre.org>

Signed-off-by: Rlin232 <rlin@mitre.org>
  • Loading branch information
Rlin232 authored Sep 12, 2022
1 parent 2c74737 commit 01af094
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/bump-brew.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Bump Homebrew formula

on:
release:
types: [published]
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- name: Extract version
id: extract-version
run: |
printf "::set-output name=%s::%s\n" tag-name "${GITHUB_REF#refs/tags/}"
- uses: mislav/bump-homebrew-formula-action@v2.1
if: "!contains(github.ref, '-')" # skip prereleases
with:
formula-name: saf-cli
formula-path: Formula/saf-cli.rb
homebrew-tap: mitre/homebrew-saf
base-branch: main
download-url: https://registry.npmjs.org/@mitre/saf/-/saf-${{ steps.extract-version.outputs.tag-name }}.tgz
commit-message: |
{{formulaName}} {{version}}
Created by https://github.com/mislav/bump-homebrew-formula-action
env:
COMMITTER_TOKEN: ${{ secrets.COMMITTER_TOKEN }}

0 comments on commit 01af094

Please sign in to comment.