GitLab · Arazzo Workflow
GitLab Upsert an Instance-Level CI Variable
Version 1.0.0
Look up an instance CI variable and update it or create it if missing.
Provider
Workflows
upsert-instance-ci-variable
Create or update an instance-level CI/CD variable by key.
Gets the instance variable by key; on 200 it updates the variable, and on 404 it creates a new variable with the supplied key and value.
1
getVariable
getApiV4AdminCiVariablesKey
Read the instance variable by key. A 200 means it exists; a 404 means it must be created.
2
updateVariable
putApiV4AdminCiVariablesKey
Update the existing variable's value and protection flags.
3
createVariable
postApiV4AdminCiVariables
Create a new instance-level variable with the supplied key and value.