Skip to content

Commit 69ecce5

Browse files
Update pipelines.yml
1 parent da81df0 commit 69ecce5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/pipelines.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
branches: [dev,release ]
55
pull_request:
66
types:
7-
- opened
7+
- closed
88
branches:
99
- main
1010
env:
@@ -42,7 +42,7 @@ jobs:
4242
nutter run "$DEV_DIRECTORY/unit-tests/" --cluster_id $CLUSTER_ID --recursive --junit_report --timeout 500
4343
4444
OnRelease:
45-
if: github.ref_name == 'main'
45+
if: github.event.pull_request.merged == true and startsWith(github.head_ref, 'main')
4646
environment: prod
4747
needs: OnPush
4848
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)