Skip to content

Commit bfbde3b

Browse files
committed
workflows: avoid duplicate tests when pushing tag
1 parent 8850161 commit bfbde3b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: release
22

33
on:
44
push:
5+
branches:
6+
- master
57
tags:
68
- 'v[0-9]+.[0-9]+.[0-9]+'
79

@@ -11,6 +13,7 @@ jobs:
1113

1214
pypi-publish:
1315
needs: tests
16+
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
1417
permissions:
1518
id-token: write
1619
environment:

.github/workflows/tox.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
name: tox CI
22

33
on:
4-
push:
5-
branches: [ master ]
64
pull_request:
75
branches: [ master ]
86

0 commit comments

Comments
 (0)