File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,23 +45,23 @@ jobs:
4545
4646 - uses : vrchatapi/specification/.github/actions/download@main
4747 with :
48- bundle : openapi-3.1.yaml
48+ bundle : openapi-3.1.json
4949 tag : ${{ inputs.tag }}
5050
5151 # The SDK is a major and a minor version ahead of the specification.
5252 - id : version
5353 run : |
54- version="$(yq -r '.info.version' openapi-3.1.yaml )"
54+ version="$(yq -r '.info.version' openapi-3.1.json )"
5555 major="${version%%.*}"
5656 rest="${version#*.}"
5757 version="$(( major + 1 )).$(( ${rest%%.*} + 1 )).${rest#*.}${VERSION_POSTPEND}"
5858
5959 echo "version=${version}" >> $GITHUB_OUTPUT
6060
6161 - if : env.VERSION_POSTPEND != ''
62- run : yq '--inplace' ".info.version |= \"${{ steps.version.outputs.version }}\"" openapi-3.1.yaml
62+ run : yq '--inplace' ".info.version |= \"${{ steps.version.outputs.version }}\"" openapi-3.1.json
6363
64- - run : bash ./generate.sh openapi-3.1.yaml "${{ steps.version.outputs.version }}"
64+ - run : bash ./generate.sh openapi-3.1.json "${{ steps.version.outputs.version }}"
6565
6666 - run : cp README.md src/
6767
@@ -107,7 +107,7 @@ jobs:
107107 with :
108108 name : csharp-generated
109109
110- - run : rm -f openapi-3.1.yaml
110+ - run : rm -f openapi-3.1.json
111111
112112 - uses : NuGet/setup-nuget@v4.0
113113
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ set -euo pipefail
33
44if [ ${# } -le 1 ]
55then
6- echo " Usage: generate.sh <openapi.yaml > <version>" >&2
6+ echo " Usage: generate.sh <openapi.json > <version>" >&2
77 exit 1
88fi
99
You can’t perform that action at this time.
0 commit comments