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
getRepoVariable
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
updateRepoVariable
Patch the existing variable with the new value. Returns 204 with no body.
3
createVariable
createRepoVariable
Create the variable with the supplied name and value. Returns 201.
4
confirmVariable
getRepoVariable
Read the variable back to confirm the stored value after the upsert.