Skip to content

Commit 0c4b6a8

Browse files
committed
CCM-11938: try remote
1 parent 85599dd commit 0c4b6a8

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/manual-proxy-environment-deploy.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ jobs:
6161
echo "does_pull_request_exist=true" >> $GITHUB_OUTPUT
6262
echo "pr_number=$pr_number" >> $GITHUB_OUTPUT
6363
APIM_ENV="$ENVIRONMENT-pr"
64+
echo "changing environment variable so that PR number is used in proxy pipeline for setting env vars"
65+
ENVIRONMENT="pr$pr_number"
6466
else
6567
echo "Pull request doesn't exist"
6668
echo "does_pull_request_exist=false" >> $GITHUB_OUTPUT
@@ -72,8 +74,16 @@ jobs:
7274
echo "APIM_ENV=$APIM_ENV" >> $GITHUB_ENV
7375
- name: Build environment oas
7476
working-directory: .
77+
env:
78+
APIM_ENV: ${{ env.APIM_ENV }}
7579
shell: bash
76-
run: make build-json-oas-spec APIM_ENV=$APIM_ENV
80+
run: |
81+
make build-json-oas-spec APIM_ENV=$APIM_ENV
82+
if [[ $APIM_ENV == *-pr ]]; then
83+
echo "Removing pr suffix from APIM_ENV after building OAS and calling proxygen"
84+
APIM_ENV=$(echo "$APIM_ENV" | sed 's/-pr$//')
85+
echo "APIM_ENV=$APIM_ENV" >> $GITHUB_ENV
86+
fi
7787
- name: "Build proxies"
7888
env:
7989
PR_NUMBER: ${{ steps.pr_exists.outputs.pr_number }}

0 commit comments

Comments
 (0)