Skip to content

Commit a108782

Browse files
CCM-11971: Move PR Created Workflow before Acceptance Tests
1 parent a55f8f9 commit a108782

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/stage-3-build.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,15 @@ jobs:
9696
env:
9797
APP_CLIENT_ID: ${{ secrets.APP_CLIENT_ID }}
9898
APP_PEM_FILE: ${{ secrets.APP_PEM_FILE }}
99+
PR_NUMBER: ${{ inputs.pr_number }}
100+
99101
shell: bash
100102
run: |
101103
.github/scripts/dispatch_internal_repo_workflow.sh \
102104
--infraRepoName "$(echo ${{ github.repository }} | cut -d'/' -f2)" \
103-
--releaseVersion "${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" \
105+
--releaseVersion ${{ github.head_ref || github.ref_name }} \
104106
--targetWorkflow "dispatch-deploy-dynamic-env.yaml" \
105-
--targetEnvironment "pr${{ github.event.number }}" \
107+
--targetEnvironment "${env.PR_NUMBER}" \
106108
--targetComponent "api" \
107109
--targetAccountGroup "nhs-notify-supplier-api-dev" \
108110
--terraformAction "apply" \

0 commit comments

Comments
 (0)