Bump Homebrew formula #61
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |