From 13a3c99133a31a895e5ba82b3d01f6da5977c755 Mon Sep 17 00:00:00 2001 From: C0D3 M4513R <28912031+C0D3-M4513R@users.noreply.github.com> Date: Sat, 26 Sep 2026 22:31:59 +0200 Subject: [PATCH 1/2] Add tag input for fetching bundle from releases This Commit allows other generators to specify a specific tag to download bundles from. This is useful to e.g. actually use the files from the nightly tag in ci on manual pushes to an sdk repo --- .github/actions/download/action.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/actions/download/action.yml b/.github/actions/download/action.yml index 33ddd200..83f22f54 100644 --- a/.github/actions/download/action.yml +++ b/.github/actions/download/action.yml @@ -6,6 +6,11 @@ description: >- otherwise. inputs: + tag: + description: >- + The Tag from which to fetch the bundle + required: false + default: latest bundle: description: >- Bundle to fetch. @@ -31,5 +36,5 @@ runs: run: >- curl -Lfo "${{ inputs.bundle }}" "${{ inputs.url || github.event.client_payload.artifacts[inputs.bundle] - || format('https://github.com/vrchatapi/specification/releases/latest/download/{0}', inputs.bundle) }}" + || format('https://github.com/vrchatapi/specification/releases/{0}/download/{1}', inputs.tag, inputs.bundle) }}" shell: bash From 65989c290d463e6234062aab207a78a50aa80474 Mon Sep 17 00:00:00 2001 From: Aries Clark Date: Thu, 8 Oct 2026 06:07:11 -0400 Subject: [PATCH 2/2] fix(actions): build tagged release download URLs as GitHub serves them --- .github/actions/download/action.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/actions/download/action.yml b/.github/actions/download/action.yml index 83f22f54..a68e514c 100644 --- a/.github/actions/download/action.yml +++ b/.github/actions/download/action.yml @@ -2,13 +2,14 @@ name: Fetch a specification bundle description: >- Leaves the requested bundle in the working directory, taken from this run's artifacts when running inside the specification repository, from the release - that triggered the run when there is one, and from the latest release + that triggered the run when there is one, and from the release `tag` names otherwise. inputs: tag: description: >- - The Tag from which to fetch the bundle + Release to fetch the bundle from when no release triggered the run, such + as `nightly` or `v1.22.1`. required: false default: latest bundle: @@ -36,5 +37,7 @@ runs: run: >- curl -Lfo "${{ inputs.bundle }}" "${{ inputs.url || github.event.client_payload.artifacts[inputs.bundle] - || format('https://github.com/vrchatapi/specification/releases/{0}/download/{1}', inputs.tag, inputs.bundle) }}" + || format(inputs.tag == 'latest' + && 'https://github.com/vrchatapi/specification/releases/latest/download/{1}' + || 'https://github.com/vrchatapi/specification/releases/download/{0}/{1}', inputs.tag, inputs.bundle) }}" shell: bash