Skip to content

Commit

Permalink
swap cf-terraforming homebrew bumper to formula
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobbednarz committed Nov 6, 2023
1 parent 1db5ce6 commit 679caec
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 33 deletions.
33 changes: 0 additions & 33 deletions .github/workflows/bump-cask.yaml

This file was deleted.

33 changes: 33 additions & 0 deletions .github/workflows/bump-formula.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
on:
release:
types: [ released ]
workflow_dispatch:
inputs:
tag-name:
description: 'The git tag name to bump the formula to (including the "v" prefix)'
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-terraforming
formula-path: cf-terraforming.rb
homebrew-tap: cloudflare/homebrew-cloudflare
tag-name: ${{ steps.extract-version.outputs.tag-name }}
download-url: https://github.com/cloudflare/cf-terraforming/archive/refs/tags/${{ steps.extract-version.outputs.tag-name }}.tar.gz
commit-message: |
Updates {{formulaName}} to {{version}}
env:
COMMITTER_TOKEN: ${{ secrets.BUMP_CASK_TOKEN }}

0 comments on commit 679caec

Please sign in to comment.