Hi, I’d like to setup CI/CD using Pulumi GitHub Ac...
# general
b
Hi, I’d like to setup CI/CD using Pulumi GitHub Action, using branch-per-stack strategy. It’s not clear to me how can I map branch name to stack name? The problem is described by https://github.com/pulumi/actions/issues/89. Apparently, Pulumi CLI Action 
v1
supported this feature, while
v2
does not. What workarounds are you using?
f
You can manually export the branch name into an env variable within github actions and then use that as the stack name. Take a look at this answer here to get some inspiration: https://stackoverflow.com/a/64210623
b
This is exactly what I was looking for. Thank you @future-refrigerator-88869 very much! ❤️
🙌 1
e
This is also an example which can give you the same functionality: https://github.com/cobraz/setup-variables/blob/main/examples/simple-workflow.yaml