Skip to content

Commit 023ada9

Browse files
committed
CCM-11938: Fix sonar issues
1 parent 62c8a6a commit 023ada9

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/actions/build-proxies/action.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,17 @@ runs:
7171
7272
- name: Build ${{ inputs.apimEnv }} oas
7373
working-directory: .
74+
env:
75+
APIM_ENV: ${{ inputs.apimEnv }}
7476
shell: bash
7577
run: |
76-
if [ ${{ inputs.apimEnv }} == "internal-dev-sandbox" ] && [ ${{ inputs.buildSandbox }} == true ]
78+
if [ ${{ env.APIM_ENV }} == "internal-dev-sandbox" ] && [ ${{ inputs.buildSandbox }} == true ]
7779
then
7880
echo "Building sandbox OAS spec"
7981
make build-json-oas-spec APIM_ENV=sandbox
8082
else
8183
echo "Building env specific OAS spec"
82-
make build-json-oas-spec APIM_ENV=${{ inputs.apimEnv }}
84+
make build-json-oas-spec APIM_ENV=${{ env.APIM_ENV }}
8385
fi
8486
if [[ $APIM_ENV == *-pr ]]; then
8587
echo "Removing pr suffix from APIM_ENV after building OAS and calling proxygen"
@@ -90,7 +92,7 @@ runs:
9092
- name: Upload OAS Spec
9193
uses: actions/upload-artifact@v4
9294
with:
93-
name: ${{ inputs.apimEnv }}-build-output
95+
name: ${{ env.APIM_ENV }}-build-output
9496
path: ./build
9597

9698
- name: Trigger deploy proxy
@@ -106,7 +108,7 @@ runs:
106108
--targetEnvironment "${{ inputs.environment }}" \
107109
--runId "${{ inputs.runId }}" \
108110
--buildSandbox ${{ inputs.buildSandbox }} \
109-
--apimEnvironment "${{ inputs.apimEnv }}" \
111+
--apimEnvironment "${{ env.APIM_ENV }}" \
110112
--boundedContext "notify-supplier" \
111113
--targetDomain "$TARGET_DOMAIN" \
112114
--version "${{ inputs.version }}"

0 commit comments

Comments
 (0)