File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 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
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 }}
You can’t perform that action at this time.
0 commit comments