nkpatterson / MercuryHealth-OperationsTeam

1 stars 9 forks source link

Cleaned up env-req-workflow.yml #29

Open larryclaman opened 4 years ago

larryclaman commented 4 years ago

(trying again) I refactored env-req-workflow.yml to add some functionality and clean up some things that were bothering me. 😊

  1. 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)
  2. 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. 😜
  3. 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.