Skip to content

Commit 28d7957

Browse files
authored
Merge pull request #311 from TraGicCode/chore/fixing-homebrew-publish-workflow
Fixing homebrew publish github workflow
2 parents ca6ad24 + f26a8ce commit 28d7957

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/homebrew_deploy.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
jobs:
1010
build-and-pack:
1111
runs-on: ubuntu-latest
12+
if: github.event.workflow_run.conclusion == 'success'
1213

1314
steps:
1415
- name: Checkout
@@ -19,7 +20,7 @@ jobs:
1920
with:
2021
formula-name: busly-cli
2122
homebrew-tap: tragiccode/homebrew-tap-busly-cli
22-
tag-name: ${{ github.event.release.tag_name }}
23-
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
23+
tag-name: ${{ github.event.workflow_run.head_branch }}
24+
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
2425
env:
2526
COMMITTER_TOKEN: ${{ secrets.GH_TOKEN_FOR_HOMEBREW_PUBLISH }}

0 commit comments

Comments
 (0)