Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions .github/workflows/homebrew.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,26 @@ name: Update Homebrew Tap
on:
release:
types: [published]
workflow_dispatch:
inputs:
tag:
description: 'Release tag (e.g. v0.4.2)'
required: true
type: string

permissions:
contents: read

jobs:
homebrew:
runs-on: ubuntu-latest
if: "!github.event.release.prerelease"
if: ${{ github.event_name == 'workflow_dispatch' || !github.event.release.prerelease }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.release.tag_name || inputs.tag }}

- name: Set up Go
uses: actions/setup-go@v5
Expand All @@ -41,5 +48,5 @@ jobs:
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add Formula/go-passbolt-cli.rb
git commit -m "Update go-passbolt-cli to ${{ github.event.release.tag_name }}"
git commit -m "Update go-passbolt-cli to ${{ github.event.release.tag_name || inputs.tag }}"
git push
Loading