Commit 1572979 1 parent ca88940 commit 1572979 Copy full SHA for 1572979
File tree 1 file changed +10
-7
lines changed
1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change 1
1
name : YAML2JSON
2
2
3
+ #
4
+ # This workflow updates the *.json files in the examples/v3.0 directory,
5
+ # when the corresponding *.yaml files change.
6
+ # JSON example files are automatically generated from the YAML example files.
7
+ # Only the YAML files should be adjusted manually.
8
+ #
9
+
3
10
# run this on push to master
4
11
on :
5
12
push :
@@ -30,16 +37,10 @@ jobs:
30
37
echo "converting $file to $target ..."
31
38
if [ "$file" != "api-with-examples.yaml" ] ; then
32
39
vendor/bin/php-openapi convert --read-yaml $file --write-json $target
33
- head $target
34
40
vendor/bin/indent --tabs --tabstop=4 $target
35
- head $target
36
41
vendor/bin/indent --spaces --tabstop=2 $target
37
- head $target
38
42
fi
39
43
done
40
- git status
41
- git diff
42
- git diff --staged
43
44
44
45
- name : cleanup
45
46
run : |
61
62
title : Update JSON example files
62
63
commit-message : Update JSON example files
63
64
body : |
64
- This pull request is automatically triggered by github actions.
65
+ This pull request is automatically triggered by github actions [create-pull-request][1] .
65
66
66
67
It seems the OpenAPI example YAML files have changed, so the JSON files are automatically being adjusted.
68
+
69
+ [1]: https://github.com/peter-evans/create-pull-request
67
70
You can’t perform that action at this time.
0 commit comments