Skip to content

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

.github/workflows/bump-formula.yaml

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

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: |
echo ${{ github.event }}
if [[ ${{ github.event }} == "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 }}