Manual Approval Environment Variable

We keep improving our recent Manual Approval feature, and this time we've added a new environment variable that you can use to check if a build has been approved or not.

On all builds running as a result of a manual approval, we now set the environment variable CI_BUILD_APPROVED to true.

This means that you can write conditional scripts to avoid steps re-running on builds triggered as a result of manual approvals:

if [[ "${CI_BUILD_APPROVED}" == "true" ]]
then
    echo "This only happens after approval is given"
else
    echo "And this only happens before approval is given"
fi