GitHub Actions · Arazzo Workflow
GitHub Actions Upsert a Repository Variable
Version 1.0.0
Look up a repository variable by name and either create it or update it, then read it back.
Provider
Workflows
upsert-repo-variable
Create or update a repository variable by name and confirm its value.
Probes the variable by name, branches to create or update accordingly, and reads the variable back to verify the stored value.
1
probeVariable
Read the variable by name. A 200 means it exists and should be updated; a 404 means it does not exist and should be created.
2
updateVariable
Patch the existing variable with the new value. Returns 204 with no body.
3
createVariable
Create the variable with the supplied name and value. Returns 201.
4
confirmVariable
Read the variable back to confirm the stored value after the upsert.
Source API Descriptions
Arazzo Workflow Specification
Work with this as data
Every workflow here is available over the APIs.io API and to AI agents over MCP.