Skip to content

Commit 4c0a729

Browse files
committed
ci: build against the bundle this SDK generates from
1 parent e399f11 commit 4c0a729

1 file changed

Lines changed: 9 additions & 10 deletions

File tree

.github/workflows/build.yaml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ on:
55
pull_request:
66
workflow_call:
77
inputs:
8-
spec-artifact:
8+
artifact:
99
description: >-
10-
Artifact holding the bundled specification. Only reachable when the
11-
caller shares this run; when empty the latest published one is used.
10+
Take the bundle from this run's artifacts rather than the latest
11+
release. Only set it when the caller shares the run.
1212
required: false
13-
type: string
14-
default: ''
13+
type: boolean
14+
default: false
1515
ref:
1616
description: Ref of this repository to build.
1717
required: false
@@ -24,19 +24,18 @@ jobs:
2424
build:
2525
runs-on: ubuntu-latest
2626
steps:
27-
- uses: vrchatapi/specification/.github/actions/sdk-spec@ci/modernise-actions
27+
- uses: vrchatapi/specification/.github/actions/setup@ci/modernise-actions
2828
with:
2929
repository: vrchatapi/vrchatapi-python
3030
ref: ${{ inputs.ref || github.ref }}
31-
generator-version: 6.2.1
32-
spec-artifact: ${{ inputs.spec-artifact }}
33-
spec-file: openapi-legacy.yaml
31+
bundle: openapi-legacy.yaml
32+
artifact: ${{ inputs.artifact }}
33+
generator: 6.2.1
3434

3535
- uses: actions/setup-python@v7
3636
with:
3737
python-version: '3.14'
3838

39-
# generate.sh stamps the version into setup.py, so it comes from the spec.
4039
- run: bash ./generate.sh openapi-legacy.yaml "$(yq -r '.info.version' openapi-legacy.yaml)"
4140

4241
- run: python -m pip install --upgrade pip build

0 commit comments

Comments
 (0)