Azure / alz-terraform-accelerator

Azure Landing Zones Terraform Accelerator
MIT License
99 stars 34 forks source link

bug: workflow_dispatch or equivalent missing from pipelines #158

Closed richardf5 closed 3 months ago

richardf5 commented 3 months ago

Is there an existing issue for this?

Bootstrap or Starter Module Deployment? (Required)

bootstrap

ALZ-PowerShell-Module Version (Required)

2.2.0

alz-terraform-accelerator Version (Required)

2.2.0

Starter Module (Required)

Complete

Input arguments of the ALZ-PowerShell-Module (Required)

Deploy-Accelerator -inputs .\inputsHubSpoke.yaml -autoApprove -targetDirectory .\AlzTerraformAccelerator\

Contents of the configuration file used for the complete starter module. (Optional)

No response

Debug Output/Panic Output (Optional)

No response

Expected Behaviour (Required)

GitHub Actions should have had a 'Run Workflow' button enabled.

Actual Behaviour (Required)

No 'Run Workflow' option. This behaviour has changed since a couple of months ago.

Steps to Reproduce (Optional)

Deploy bootstrap using input file. Look at GitHub Actions. See if 'Run Workflow' is available to be clicked on.

When I add "workflow_dispatch:" into the pipelines via an approved pull request, I can then see an option to run my workflow manually.

Important Factoids (Optional)

No response

References (Optional)

No response

richardf5 commented 3 months ago

I'm wondering if this is a change to the templates under bootstrap\v2.2.0\alz\github\actions\templates?

The CD template is missing the workflow_dispatch section which is in bootstrap\v2.2.0\alz\github\actions\cd.yaml

jaredfholgate commented 3 months ago

You should be triggering the pipeline from the main repository, not the template repository. There may have been a bug in that version that does not support the single repository version. We released a new version last night that fixed support for the single repository option. Use v3.0.0 of ALZ PowerShell.