Skip to content

Commit faa3d91

Browse files
committed
Only runnign publish on tag push
Signed-off-by: Ryan Lettieri <[email protected]>
1 parent 3c065ae commit faa3d91

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/publish-dts-sdk.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
name: Publish Durable Task Scheduler to PyPI
22

3-
# on:
4-
# push:
5-
# tags:
6-
# - 'azuremanaged-v*' # Only run for tags starting with "azuremanaged-v"
7-
83
on:
94
push:
105
branches: [ "main" ]
116
pull_request:
127
branches: [ "main" ]
13-
8+
push:
9+
tags:
10+
- 'azuremanaged-v*' # Only run for tags starting with "azuremanaged-v"
1411

1512
jobs:
1613
lint:
@@ -72,6 +69,7 @@ jobs:
7269
pytest -m "dts" --verbose
7370
7471
publish:
72+
if: startsWith(github.ref, 'refs/tags/azuremanaged-v') # Only run if a matching tag is pushed
7573
needs: run-docker-tests
7674
runs-on: ubuntu-latest
7775
steps:

0 commit comments

Comments
 (0)