Skip to content

Commit 8000d20

Browse files
CCM-13276: No Dynamic Env on Merge to Main (#771)
1 parent 439c619 commit 8000d20

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ jobs:
127127
name: Create Dynamic Environment
128128
needs: [metadata, dependencies, commit-stage]
129129
runs-on: ubuntu-latest
130+
if: needs.metadata.outputs.does_pull_request_exist == 'true' && github.ref != 'refs/heads/main'
130131
steps:
131132
- uses: actions/[email protected]
132133
- name: Trigger dynamic environment creation
@@ -146,7 +147,7 @@ jobs:
146147
--overrides "branch_name=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}"
147148
acceptance-stage: # Recommended maximum execution time is 10 minutes
148149
name: "Acceptance stage"
149-
needs: [metadata, dependencies, test-stage, pr-create-dynamic-environment]
150+
needs: [metadata, dependencies, test-stage]
150151
uses: ./.github/workflows/stage-4-acceptance.yaml
151152
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')
152153
secrets: inherit

0 commit comments

Comments
 (0)