@@ -120,31 +120,9 @@ jobs:
120120 version : " ${{ needs.metadata.outputs.version }}"
121121 pr_number : " ${{ needs.metadata.outputs.pr_number }}"
122122 secrets : inherit
123- pr-create-dynamic-environment :
124- name : Create Dynamic Environment
125- runs-on : ubuntu-latest
126- needs : [metadata, build-stage]
127- steps :
128- - uses : actions/checkout@v5
129- - name : Trigger dynamic environment creation
130- env :
131- APP_CLIENT_ID : ${{ secrets.APP_CLIENT_ID }}
132- APP_PEM_FILE : ${{ secrets.APP_PEM_FILE }}
133- shell : bash
134- run : |
135- .github/scripts/dispatch_internal_repo_workflow.sh \
136- --infraRepoName "$(echo ${{ github.repository }} | cut -d'/' -f2)" \
137- --releaseVersion "${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" \
138- --targetWorkflow "dispatch-deploy-dynamic-env.yaml" \
139- --targetEnvironment "pr${{ github.event.number }}" \
140- --targetComponent "api" \
141- --targetAccountGroup "nhs-notify-supplier-api-dev" \
142- --terraformAction "apply" \
143- --overrideProjectName "nhs" \
144- --overrideRoleName "nhs-main-acct-supplier-api-github-deploy"
145123 acceptance-stage : # Recommended maximum execution time is 10 minutes
146124 name : " Acceptance stage"
147- needs : [metadata, build-stage, pr-create-dynamic-environment ]
125+ needs : [metadata, build-stage]
148126 uses : ./.github/workflows/stage-4-acceptance.yaml
149127 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')
150128 with :
0 commit comments