From f26a8ce9636134fda826cd778337194c4de8ae32 Mon Sep 17 00:00:00 2001 From: Michael Fyffe <6224270+TraGicCode@users.noreply.github.com> Date: Mon, 20 Apr 2026 08:54:52 -0500 Subject: [PATCH] Fixing homebrew publish github workflow to grab version correctly and also not run on failure of upstream workflow --- .github/workflows/homebrew_deploy.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/homebrew_deploy.yml b/.github/workflows/homebrew_deploy.yml index fdd61274..b4d07ca4 100644 --- a/.github/workflows/homebrew_deploy.yml +++ b/.github/workflows/homebrew_deploy.yml @@ -9,6 +9,7 @@ on: jobs: build-and-pack: runs-on: ubuntu-latest + if: github.event.workflow_run.conclusion == 'success' steps: - name: Checkout @@ -19,7 +20,7 @@ jobs: with: formula-name: busly-cli homebrew-tap: tragiccode/homebrew-tap-busly-cli - tag-name: ${{ github.event.release.tag_name }} - download-url: https://github.com/TraGicCode/busly-cli/releases/download/${{ github.event.release.tag_name }}/busly-cli-${{ github.event.release.tag_name }}-osx-arm64.tar.gz + tag-name: ${{ github.event.workflow_run.head_branch }} + download-url: https://github.com/TraGicCode/busly-cli/releases/download/${{ github.event.workflow_run.head_branch }}/busly-cli-${{ github.event.workflow_run.head_branch }}-osx-arm64.tar.gz env: COMMITTER_TOKEN: ${{ secrets.GH_TOKEN_FOR_HOMEBREW_PUBLISH }}