Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions .github/actions/build-oas-spec/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,18 +46,24 @@ runs:
run: npm ci
shell: bash

- name: Build ${{ inputs.apimEnv }} oas
- name: Build OAS File
working-directory: .
env:
APIM_ENV: ${{ inputs.apimEnv }}
shell: bash
run: |
if [ ${{ env.APIM_ENV }} == "internal-dev-sandbox" ] && [ ${{ inputs.buildSandbox }} == true ]
then
echo "Building sandbox OAS spec"
echo "Building JSON sandbox OAS spec"
make build-json-oas-spec APIM_ENV=sandbox

echo "Building YML sandbox OAS spec"
make build-yml-oas-spec APIM_ENV=sandbox
else
echo "Building env specific OAS spec"
echo "Building env specific JSON OAS spec"
make build-json-oas-spec APIM_ENV=${{ env.APIM_ENV }}

echo "Building env specific YML OAS spec"
make build-yml-oas-spec APIM_ENV=${{ env.APIM_ENV }}
fi

Expand Down
Loading