Skip to content

Bump Homebrew formula #76

Bump Homebrew formula

Bump Homebrew formula #76

Workflow file for this run

name: Bump Homebrew formula
on:
workflow_run:
workflows: ["Push SAF-CLI to NPM and GPR"]
types:
- completed
jobs:
update-formula:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-22.04
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Extract version
id: extract-version
run: echo "tag=$(git describe --abbrev=0 --tags)" >> $GITHUB_OUTPUT
- uses: mislav/bump-homebrew-formula-action@v3
with:
formula-name: saf-cli
homebrew-tap: mitre/homebrew-saf
download-url: https://registry.npmjs.org/@mitre/saf/-/saf-${{ steps.extract-version.outputs.tag }}.tgz
tag-name: ${{ steps.extract-version.outputs.tag }}
env:
COMMITTER_TOKEN: ${{ secrets.HOMEBREW_PAT }}