IT:AD:GitHub:Workflows:HowTo:Set The GitHub Environment
Summary
As per Variables GitHub permits saving Variables and Secrets on a per-environment basis.
But workflows need to first set the environment in order to retrieve them.
The env variable that controls which environment is active is: $GITHUB_ENV.
This $GITHUB_ENV variable is set using some form of custom logic in the *.yml workflow (eg: maybe based on a commit branch name or tag value).