File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4949 PROXYGEN_PRIVATE_KEY : ${{ secrets.PROXYGEN_PRIVATE_KEY }}
5050 run : |
5151 mkdir -p ~/.proxygen
52- echo "$PROXYGEN_PRIVATE_KEY" > ~/.proxygen/eligibility-signposting-api.pem
53- make setup-proxygen-credentials
52+
53+ if [ "${{ env.APIM_ENV }}" = "preprod" ]; then
54+ ENV_PARAM="ptl"
55+ else
56+ ENV_PARAM="${{ env.APIM_ENV }}"
57+ fi
58+
59+ echo "$PROXYGEN_PRIVATE_KEY" > ~/.proxygen/eligibility-signposting-api-${ENV_PARAM}.pem
60+ make setup-proxygen-credentials ENV=${ENV_PARAM}
5461
5562 - name : Generate specification
5663 run : |
6067 run : |
6168 if [ "${{ env.APIM_ENV }}" = "preprod" ]; then
6269 proxygen spec publish build/specification/preprod/eligibility-signposting-api.yaml --uat --no-confirm
63- else
70+ elif [ "${{ env.APIM_ENV }}" = "prod" ]; then
6471 proxygen spec publish build/specification/prod/eligibility-signposting-api.yaml --no-confirm
72+ else
73+ echo "Error: Environment '${{ env.APIM_ENV }}' is not supported for publishing. Only 'preprod' and 'prod' are allowed."
74+ exit 1
6575 fi
6676
You can’t perform that action at this time.
0 commit comments