(trying again)
I refactored env-req-workflow.yml to add some functionality and clean up some things that were bothering me. 😊
You can set the resource group as an environment variable (we're using this in our MTC demo). If you don't set the env variable, then it will pull the RG from the issue template (using Nick's original logic)
I refactored the logic and split the action into two jobs, so that it now has a single 'if' statement in front of the 2nd job. Previously, every step had its own 'if.outputapproved' line which was just really ugly. 😜
I changed the deployment step to use 'az deployment group' rather than 'az group deploy' as the latter form has been deprecated and was spitting out warnings.
(trying again) I refactored env-req-workflow.yml to add some functionality and clean up some things that were bothering me. 😊