Skip to content

CCM-12352: letter-status event schemas #1028

CCM-12352: letter-status event schemas

CCM-12352: letter-status event schemas #1028

name: PR Create Environment
on:
pull_request:
types: [labeled, opened, synchronize, reopened, unlabeled, edited]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
permissions:
id-token: write
contents: read
jobs:
create-dynamic-environment:
name: Create Dynamic Environment
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Trigger dynamic environment creation
env:
PR_TRIGGER_PAT: ${{ secrets.PR_TRIGGER_PAT }}
shell: bash
run: |
.github/scripts/dispatch_internal_repo_workflow.sh \
--infraRepoName "$(echo ${{ github.repository }} | cut -d'/' -f2)" \
--releaseVersion "${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" \
--targetWorkflow "dispatch-deploy-dynamic-env.yaml" \
--targetEnvironment "pr${{ github.event.number }}" \
--targetComponent "api" \
--targetAccountGroup "nhs-notify-supplier-api-dev" \
--terraformAction "apply" \
--overrideProjectName "nhs" \
--overrideRoleName "nhs-main-acct-supplier-api-github-deploy"