Skip to content

Commit 5b0bc62

Browse files
committed
chore: conditional publish
1 parent 98a6eb8 commit 5b0bc62

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,8 @@ jobs:
109109
- build
110110
if: |
111111
always() &&
112-
startsWith(github.event.head_commit.message, 'chore: release') &&
113112
!contains(needs.*.result, 'cancelled') &&
114-
!contains(needs.*.result, 'failure') &&
115-
github.ref == 'refs/heads/master'
113+
!contains(needs.*.result, 'failure')
116114
steps:
117115
- uses: actions/checkout@v4
118116

@@ -132,4 +130,7 @@ jobs:
132130
run: python -m build
133131

134132
- name: Publish algoliasearch package to PyPI
133+
if: |
134+
github.ref == 'refs/heads/master' &&
135+
startsWith(github.event.head_commit.message, 'chore: release')
135136
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)