Skip to content

Commit 5c7e01d

Browse files
authored
build json variant specfile too (#348)
1 parent c912dee commit 5c7e01d

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

.github/actions/build-oas-spec/action.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,24 @@ runs:
4646
run: npm ci
4747
shell: bash
4848

49-
- name: Build ${{ inputs.apimEnv }} oas
49+
- name: Build OAS File
5050
working-directory: .
5151
env:
5252
APIM_ENV: ${{ inputs.apimEnv }}
5353
shell: bash
5454
run: |
5555
if [ ${{ env.APIM_ENV }} == "internal-dev-sandbox" ] && [ ${{ inputs.buildSandbox }} == true ]
5656
then
57-
echo "Building sandbox OAS spec"
57+
echo "Building JSON sandbox OAS spec"
5858
make build-json-oas-spec APIM_ENV=sandbox
59+
60+
echo "Building YML sandbox OAS spec"
61+
make build-yml-oas-spec APIM_ENV=sandbox
5962
else
60-
echo "Building env specific OAS spec"
63+
echo "Building env specific JSON OAS spec"
64+
make build-json-oas-spec APIM_ENV=${{ env.APIM_ENV }}
65+
66+
echo "Building env specific YML OAS spec"
6167
make build-yml-oas-spec APIM_ENV=${{ env.APIM_ENV }}
6268
fi
6369

0 commit comments

Comments
 (0)