A variable the script expects was not provided
CommonAn environment variable or secret not set in this CI job, step or environment, or a misspelled name.
Confirm
env | grep -c '^NAME='
0: the variable is not in the environment of this step
Fix
- Provide it where the job is configured (the step's env, the environment's secrets), with the exact name.
- If it is required, make the script say so: : "${NAME:?NAME must be set}" near the top.
- If it is optional, read it as ${NAME:-} or give a real default: ${NAME:-staging}.
: "${ENVIRONMENT:?set ENVIRONMENT to staging or production}"Reproduced on bash 5.2.21: stopped with this message when unset, and passed when set.