it:ad:github:workflows:howto:set_the_github_environment:home

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).

  • /home/skysigal/public_html/data/pages/it/ad/github/workflows/howto/set_the_github_environment/home.txt
  • Last modified: 2024/04/28 05:10
  • by skys