I am creating a /.github/<workflow>.yml and am struggling with the environment.
A map of environment variables that are available to all jobs and steps in the workflow. You can also set environment variables that are only available to a job or step. For more information, see
jobs.<job_id>.envandjobs.<job_id>.steps.env.
When more than one environment variable is defined with the same name, GitHub uses the most specific environment variable. For example, an environment variable defined in a step will override job and workflow variables with the same name, while the step executes. A variable defined for a job will override a workflow variable with the same name, while the job executes.
To set custom environment variables, you need to specify the variables in the workflow file. You can define environment variables for a step, job, or entire workflow using the
jobs.<job_id>.steps.env,jobs.<job_id>.env,and env keywords. For more information, see "Workflow syntax for GitHub."
How do I set up environment variables for the entire workflow (multiple jobs)?