We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4489592 commit 8f7cdabCopy full SHA for 8f7cdab
1 file changed
.github/workflows/stage-4-acceptance.yaml
@@ -53,6 +53,15 @@ jobs:
53
registry-url: "https://npm.pkg.github.com"
54
scope: "@nhsdigital"
55
56
+ - name: "Set environment"
57
+ shell: bash
58
+ run: |
59
+ if [ "${{ inputs.pr_number }}" != "" ]; then
60
+ echo "ENVIRONMENT=pr${{ inputs.pr_number }}" >> $GITHUB_ENV
61
+ else
62
+ echo "ENVIRONMENT=main" >> $GITHUB_ENV
63
+ fi
64
+
65
- name: Trigger Acceptance Tests
66
shell: bash
67
env:
@@ -65,6 +74,6 @@ jobs:
74
--infraRepoName "nhs-notify-supplier-api" \
75
--releaseVersion "${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" \
76
--overrideProjectName "nhs" \
68
- --targetEnvironment "pr${{ inputs.pr_number }}" \
77
+ --targetEnvironment "$ENVIRONMENT" \
69
78
--targetAccountGroup "nhs-notify-supplier-api-dev" \
70
79
--targetComponent "api"
0 commit comments