wemogy/Get Environment (wemogy)

Detects on which branch or Pull Request a workflow is running on and derives an environment information from that.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
github-tokenGitHub Tokenyes
prod-branchName of the branch that should result in environment 'prod'yesprod
prod-domain-prefixPrefix to use in domains when environment is 'prod'yes""
staging-branchName of the branch that should result in environment 'staging'yesstaging
staging-domain-prefixPrefix to use in domains when environment is 'staging'yesstaging
dev-branchName of the branch that should result in environment 'dev'yesmain
dev-domain-prefixPrefix to use in domains when environment is 'dev'yesdev
pr-environmentDefault environment that should be used for Pull Request deploymentsyesdev
pr-use-custom-environmentShould the Pull Request be deployed into a custom environment?yesfalse
deploy-labelLabel to trigger the default deploymentyesdeploy-to-dev
deploy-to-custom-labelLabel to trigger a deployment into a custom environmentyesdeploy-to-custom
namedescription
branch-nameName of the current branch
exact-matchDoes the current branch exactly match one of the environments?
is-pull-requestIs this running in context of a Pull Request?
is-deployment-neededIs a deployment needed?
is-custom-environmentShould a custom environment be used?
envThe Environment this branch is targeting
domain-prefixPrefix to use in domains
slugEnvironment slug to attach as suffix to versions and resources like Kubernetes namespaces