Skip to content

.github/workflows/bump-formula.yaml #6

.github/workflows/bump-formula.yaml

.github/workflows/bump-formula.yaml #6

Workflow file for this run

on:
release:
types: [ released ]
workflow_dispatch:
inputs:
tag-name:
description: 'The git tag name to bump the formula to'
required: true
jobs:
homebrew:
name: Bump Homebrew formula
runs-on: ubuntu-latest
steps:
- name: Extract version
id: extract-version
run: |
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
echo "tag-name=${{ inputs.tag-name }}" >> $GITHUB_OUTPUT
else
echo "tag-name=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
fi
- uses: mislav/bump-homebrew-formula-action@v3
with:
formula-name: cf-vault
formula-path: cf-vault.rb
homebrew-tap: jacobbednarz/homebrew-tap
download-url: https://github.com/jacobbednarz/cf-vault/archive/refs/tags/${{ steps.extract-version.outputs.tag-name }}.tar.gz
commit-message: |
Updates {{formulaName}} to {{version}}
env:
COMMITTER_TOKEN: ${{ secrets.HOMEBREW_UPDATER_PAT }}