From 0232bbdbc80e809b96c8b668e60320d700993fa3 Mon Sep 17 00:00:00 2001 From: Gordon Byers Date: Wed, 29 Mar 2023 09:10:08 +0100 Subject: [PATCH 1/2] Update ByoVnetCI.yml --- .github/workflows/ByoVnetCI.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ByoVnetCI.yml b/.github/workflows/ByoVnetCI.yml index 8629d6cfa..1949cc88a 100644 --- a/.github/workflows/ByoVnetCI.yml +++ b/.github/workflows/ByoVnetCI.yml @@ -50,6 +50,11 @@ on: default: false type: boolean required: false + doCostEstimate: + description: 'Perform a template Cost Estimate' + default: false + type: boolean + required: false doDebugSteps: description: 'Run informational steps' default: true @@ -116,7 +121,7 @@ jobs: CostEstimate: needs: [ReusableWF, Validation] - if: github.event_name != 'pull_request' || contains( github.event.pull_request.labels.*.name, 'test-deploy-byoconfig') + if: github.event.inputs.doCostEstimate == 'true' uses: TheCloudTheory/arm-estimator/.github/workflows/estimateFromUrl.yml@main #uses: Gordonby/arm-estimator/.github/workflows/estimateFromUrl.yml@gb-workflowpolish with: From bd4a0412a098f0dc62d8ecea0c50ac01b2f5c8cc Mon Sep 17 00:00:00 2001 From: Gordon Byers Date: Wed, 29 Mar 2023 09:18:52 +0100 Subject: [PATCH 2/2] Update ByoVnetPrivateCI.yml --- .github/workflows/ByoVnetPrivateCI.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ByoVnetPrivateCI.yml b/.github/workflows/ByoVnetPrivateCI.yml index 1c57253b5..70cb57498 100644 --- a/.github/workflows/ByoVnetPrivateCI.yml +++ b/.github/workflows/ByoVnetPrivateCI.yml @@ -36,6 +36,11 @@ on: default: false type: boolean required: false + doCostEstimate: + description: 'Perform a template Cost Estimate' + default: false + type: boolean + required: false doDebugSteps: description: 'Run informational steps' default: true @@ -126,7 +131,7 @@ jobs: CostEstimate: needs: [ReusableWF] - if: github.event_name != 'pull_request' || contains( github.event.pull_request.labels.*.name, 'test-deploy-privateconfig') + if: github.event.inputs.doCostEstimate == 'true' uses: TheCloudTheory/arm-estimator/.github/workflows/estimateFromUrl.yml@main #uses: Gordonby/arm-estimator/.github/workflows/estimateFromUrl.yml@gb-workflowpolish with: