Reference
GitHub Setup Action
Official GitHub Actions installer for ota when later workflow steps need direct ota commands.
referenceautomation buildersintermediatestable
Recommended next
Purpose
Use ota-run/setup@v1 when a GitHub Actions job needs ota on PATH for later direct commands such as ota run setup, ota run ci, or ota run deploy:cloudflare.
This action is the installer/bootstrap boundary for GitHub Actions. It does not render readiness summaries, annotations, or pull-request comments.
- install ota through the official installer
- add ota to
PATHfor later steps in the same job - fail closed with
install: neverwhen the runner is already provisioned - keep installer behavior separate from GitHub-native reporting
Use when
- a later workflow step must invoke
otadirectly - you want to replace hand-written install snippets such as
curl ... install.sh | sh - a release or deploy job needs ota but does not need the reporting wrapper itself
- the workflow should keep installer behavior explicit and reusable
Quick start
Workflowyaml
steps: - uses: actions/checkout@v5 - name: Setup ota uses: ota-run/setup@v1 with: ota-version: 1.5.0 - name: Validate contract run: ota validate - name: Verify run: | ota run setup --stream ota run ciInputs
installcontrols installation behavior and supportsalwaysornever; default:always.ota-versionpins the installer to a specific ota release such asv1.5.0when reproducibility matters.ota-binoverrides the ota binary name or path after installation resolution; path-like values are resolved from the workflow working directory; default:ota.
Outputs
ota-binreturns the resolved ota binary path selected by the action.ota-versionreturns the resolved ota version reported by that binary.installedreports whether the action performed installation during the current run.
Install behavior
install: alwaysforces installer use before selecting the binary.install: neverrequires ota to already exist and fails closed otherwise.- self-hosted runners should provide
pwshon Windows orshpluscurlon Unix-like runners when installer mode is used. - missing installer prerequisites now fail with an explicit operator message instead of a generic install error.
Job boundary
- the action adds ota to
PATHfor later steps in the same job - that does not carry into a different job
- if another job also needs direct
otacommands, runota-run/setup@v1there too
Relationship to ota-run/action
- use
ota-run/action@v1for readiness summaries, annotations, pull-request comments, and receipt artifacts - use
ota-run/setup@v1when you need ota installed for later direct commands - use both together when a workflow needs a read-only readiness gate first and direct ota commands later
Source repo
The setup action source, release tags, and workflow examples live in GitHub.