Support Multiple Production Environments #209
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Support Multiple Production Environments 🌍
This pull request enables support for multiple production environments. Before this change, the
production_environment
input value only accepted a single environment. This is not idea for projects that might do something like this:.deploy production
- Deploys code to the production environment.deploy production-eu
- Deploys code to a specialized European production environment (think, GDPR)Since the
production_environment
input option only takes one value, we cannot set theproduction-eu
environment as "production" via our API call to GitHub (happens inside of this Action for you). However,production-eu
is absolutely a production environment, the name even says so!To solve this, the
production_environment
input option will be removed and replaced with its plural counterpart ->production_environments
(note the trailing s).Breaking Change⚠️
This will be a breaking change and warrant a new major release of this Action. If users are declaring
production_environment
in their config, it will absolutely need to be changed toproduction_environments
when jumping tov8.0.0
closes: #208