From cb296bda4bf8019703c37d478c1fae7f827d1836 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20HERZOG?= Date: Tue, 17 Mar 2026 14:40:11 +0000 Subject: [PATCH] PB-50130 - Go-Cli: Add a manual workflow step to be able to manually execute the releases MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Cédric HERZOG --- .github/workflows/homebrew.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/homebrew.yml b/.github/workflows/homebrew.yml index 8f63e1b..9975f33 100644 --- a/.github/workflows/homebrew.yml +++ b/.github/workflows/homebrew.yml @@ -3,6 +3,12 @@ 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 @@ -10,12 +16,13 @@ permissions: 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 @@ -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