Skip to content

Commit 0af0f79

Browse files
committed
chore(ci): generate from the JSON bundle
1 parent 5a94d9a commit 0af0f79

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

‎.github/workflows/ci.yaml‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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

‎generate.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set -euo pipefail
33

44
if [ ${#} -le 1 ]
55
then
6-
echo "Usage: generate.sh <openapi.yaml> <version>" >&2
6+
echo "Usage: generate.sh <openapi.json> <version>" >&2
77
exit 1
88
fi
99

0 commit comments

Comments
 (0)