From d1ed6024fdbc9c56f7746fc9869351381f4eae2a Mon Sep 17 00:00:00 2001 From: Carsten Brandt Date: Fri, 6 Dec 2019 14:35:22 +0100 Subject: [PATCH] re-include api-with-examples.yaml in yaml2json conversion --- .github/workflows/yaml2json.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/yaml2json.yml b/.github/workflows/yaml2json.yml index 949b37c45f..4bb470c4f0 100644 --- a/.github/workflows/yaml2json.yml +++ b/.github/workflows/yaml2json.yml @@ -35,11 +35,9 @@ jobs: for file in *.yaml ; do target=`basename -s .yaml $file`.json echo "converting $file to $target ..." - if [ "$file" != "api-with-examples.yaml" ] ; then - vendor/bin/php-openapi convert --read-yaml $file --write-json $target - vendor/bin/indent --tabs --tabstop=4 $target - vendor/bin/indent --spaces --tabstop=2 $target - fi + vendor/bin/php-openapi convert --read-yaml $file --write-json $target + vendor/bin/indent --tabs --tabstop=4 $target + vendor/bin/indent --spaces --tabstop=2 $target done - name: cleanup @@ -51,7 +49,7 @@ jobs: run: | cd examples/v3.0 git add *.json - git diff --staged + git --no-pager -c color.diff=always diff --staged - name: Create Pull Request uses: peter-evans/create-pull-request@v1