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 2d1e210
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 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 All @@ -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
Expand Down

0 comments on commit 2d1e210

Please sign in to comment.