Is there a way to use label values in a github act...
# github-actions
s
Is there a way to use label values in a github actions job? Specifically, Id like to define an environment with a label on a pr like:
env:dev01
this would trigger the pr to run a deploy.yaml which would access the label value to know which environment to deploy to
the workflow would trigger, but sounds like you’d need some additional logic within your workflow to conditionally choose the steps to run within it
s
ya thats it, Im already using the if stuff, but with 3 dev, 3 test and a prod environment its pretty ugly, guess theres no way to derive the value, I think I saw an action for it, that might be less ugly
this was supposed to be a step to buy me time to setup ArgoCD properly, might be more worth it to just do that 😜