Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .github/actions/download/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,16 @@ 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: >-
Release to fetch the bundle from when no release triggered the run, such
as `nightly` or `v1.22.1`.
required: false
default: latest
bundle:
description: >-
Bundle to fetch.
Expand All @@ -31,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/latest/download/{0}', 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
Loading