Skip to content

Commit 2d1e210

Browse files
committed
re-include api-with-examples.yaml in yaml2json conversion
1 parent 8efab5f commit 2d1e210

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/yaml2json.yml

+4-6
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,9 @@ jobs:
3535
for file in *.yaml ; do
3636
target=`basename -s .yaml $file`.json
3737
echo "converting $file to $target ..."
38-
if [ "$file" != "api-with-examples.yaml" ] ; then
39-
vendor/bin/php-openapi convert --read-yaml $file --write-json $target
40-
vendor/bin/indent --tabs --tabstop=4 $target
41-
vendor/bin/indent --spaces --tabstop=2 $target
42-
fi
38+
vendor/bin/php-openapi convert --read-yaml $file --write-json $target
39+
vendor/bin/indent --tabs --tabstop=4 $target
40+
vendor/bin/indent --spaces --tabstop=2 $target
4341
done
4442
4543
- name: cleanup
@@ -51,7 +49,7 @@ jobs:
5149
run: |
5250
cd examples/v3.0
5351
git add *.json
54-
git diff --staged
52+
git --no-pager -c color.diff=always diff --staged
5553
5654
- name: Create Pull Request
5755
uses: peter-evans/create-pull-request@v1

0 commit comments

Comments
 (0)