What is the purpose of the env vars being set in the README.md example #198
-
I'm new to this Action and am struggling to understand the purpose of
used in the publishing flow example in README.md and the exhortation to change What are they for? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
These are not environment variables, but GitHub Environments. It's a concept the platform has for describing where things are being deployed to. P.S. Don't change the name — it's used in other guides, and we use |
Beta Was this translation helpful? Give feedback.
These are not environment variables, but GitHub Environments. It's a concept the platform has for describing where things are being deployed to.
The URL is shown on GH UI in various places. The name is just an identifier.
The environments can be automatically created on the first use or through the repository settings. There, in the settings, it's possible to apply various protection rules or scope secrets. I normally recommend setting up required reviews and a cool down timer there — this pauses the workflow right before starting the job that needs said environment and awaits for you to click on the button allowing it to run. When this happens, you also get an email notification.
Another…