Skip to content

Commit 879e78f

Browse files
Removing the testing changes
1 parent da6c7ed commit 879e78f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ name: Publish Release
22

33
on:
44
workflow_dispatch:
5-
pull_request:
6-
types: [opened, reopened, synchronize]
75

86
### TODO: Replace instances of './.github/actions/' with reference to the `dx-sdk-actions` repo is made public and this file is transferred over
97
### TODO: Also remove `get-prerelease`, `get-version`, `release-create`, `tag-create` and `tag-exists` actions from this repo's .github/actions folder once the repo is public.
@@ -26,7 +24,7 @@ jobs:
2624
PRODSEC_TOOLS_TOKEN: ${{ secrets.PRODSEC_TOOLS_TOKEN }}
2725
PRODSEC_TOOLS_ARN: ${{ secrets.PRODSEC_TOOLS_ARN }}
2826
publish-pypi:
29-
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request')
27+
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && github.event.pull_request.merged && startsWith(github.event.pull_request.head.ref, 'release/'))
3028
name: "PyPI"
3129
runs-on: ubuntu-latest
3230
# needs: rl-scanner

0 commit comments

Comments
 (0)