We are using netlify_environment_variable to set some env variables on the team level, and it works fine if we use set context to all or we use one of the predefined contexts ["production", "branch-deploy", "deploy-preview", "dev"]. But if we try to set context to branch and provide the branch name as context_parameter, it fails due to a validation error.
I am sharing below an example of the code and the error.
Hello,
We are using
netlify_environment_variable
to set some env variables on the team level, and it works fine if we use set context toall
or we use one of the predefined contexts["production", "branch-deploy", "deploy-preview", "dev"]
. But if we try to set context tobranch
and provide the branch name ascontext_parameter
, it fails due to a validation error.I am sharing below an example of the code and the error.
And this is the resulting error: