CCM-11938: Move Proxygen Deploy to Internal #912
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" |