Skip to content

Commit 5486075

Browse files
committed
ci: trigger homebrew job only when publish was finished
1 parent f69f1db commit 5486075

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/homebrewpublish.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
name: Publish to Homebrew
22

33
on:
4-
push:
5-
tags:
6-
- 'v*'
4+
workflow_run:
5+
workflows: ["Upload Python Package"]
6+
types:
7+
- completed
8+
79
jobs:
810
deploy:
911
runs-on: ubuntu-latest
12+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1013
steps:
1114
- name: Checkout
1215
uses: actions/checkout@v2

0 commit comments

Comments
 (0)