Skip to content

Commit 9368775

Browse files
CCM-13276: No Dynamic Env on Merge to Main
1 parent f7b96ec commit 9368775

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/cicd-1-pull-request.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ jobs:
127127
name: Create Dynamic Environment
128128
needs: [metadata, dependencies, commit-stage]
129129
runs-on: ubuntu-latest
130-
if: github.ref != 'refs/heads/main'
130+
if: needs.metadata.outputs.does_pull_request_exist == 'true' && github.ref != 'refs/heads/main'
131131
steps:
132132
- uses: actions/[email protected]
133133
- name: Trigger dynamic environment creation
@@ -147,7 +147,7 @@ jobs:
147147
--overrides "branch_name=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}"
148148
acceptance-stage: # Recommended maximum execution time is 10 minutes
149149
name: "Acceptance stage"
150-
needs: [metadata, dependencies, test-stage, pr-create-dynamic-environment]
150+
needs: [metadata, dependencies, test-stage]
151151
uses: ./.github/workflows/stage-4-acceptance.yaml
152152
if: needs.metadata.outputs.does_pull_request_exist == 'true' || (github.event_name == 'pull_request' && (github.event.action == 'opened' || github.event.action == 'reopened')) || (github.event_name == 'push' && github.ref == 'refs/heads/main')
153153
secrets: inherit

0 commit comments

Comments
 (0)