Skip to content

Commit 4ff4ada

Browse files
committed
Only trigger test gate when publishing
1 parent 62738d5 commit 4ff4ada

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ jobs:
3636

3737
test-package:
3838
name: Test package
39+
if: |
40+
github.repository_owner == 'python'
41+
&& (
42+
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags/'))
43+
|| github.event.action == 'published'
44+
)
3945
needs: build-package
4046
uses: ./.github/workflows/tests.yml
4147

0 commit comments

Comments
 (0)