Skip to content

Commit

Permalink
re-include api-with-examples.yaml in yaml2json conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
cebe committed Dec 6, 2019
1 parent 8efab5f commit 4db07c7
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/yaml2json.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4db07c7

Please sign in to comment.