From dc743592c9a84ab1e1716f8f34238ab584c7becf Mon Sep 17 00:00:00 2001 From: sdecker Date: Tue, 15 Oct 2024 18:42:04 -0400 Subject: [PATCH] allow nonprod and prod plans if only one of policy or role changes (#779) remove extra n from nonprod --- .../GitHubActions/GitHub-Flow/epac-dev-workflow.yml | 3 +++ .../GitHubActions/Release-Flow/epac-dev-workflow.yml | 8 +++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/StarterKit/Pipelines/GitHubActions/GitHub-Flow/epac-dev-workflow.yml b/StarterKit/Pipelines/GitHubActions/GitHub-Flow/epac-dev-workflow.yml index 5677f655..c3746931 100644 --- a/StarterKit/Pipelines/GitHubActions/GitHub-Flow/epac-dev-workflow.yml +++ b/StarterKit/Pipelines/GitHubActions/GitHub-Flow/epac-dev-workflow.yml @@ -56,6 +56,9 @@ jobs: tenantPlan: name: Plan tenant needs: [deployPolicy, deployRoles] + if: | + always() + && !contains(needs.*.result,'failure') uses: ./.github/workflows/plan.yml with: pacEnvironmentSelector: tenant diff --git a/StarterKit/Pipelines/GitHubActions/Release-Flow/epac-dev-workflow.yml b/StarterKit/Pipelines/GitHubActions/Release-Flow/epac-dev-workflow.yml index 72ca1d7a..82c0acea 100644 --- a/StarterKit/Pipelines/GitHubActions/Release-Flow/epac-dev-workflow.yml +++ b/StarterKit/Pipelines/GitHubActions/Release-Flow/epac-dev-workflow.yml @@ -56,9 +56,12 @@ jobs: nonprodPlan: name: Plan nonprod needs: [deployPolicy, deployRoles] + if: | + always() + && !contains(needs.*.result,'failure') uses: ./.github/workflows/plan.yml with: - pacEnvironmentSelector: nonnprod + pacEnvironmentSelector: nonprod planGitHubEnvironment: NONPROD-PLAN PAC_OUTPUT_FOLDER: ./Output PAC_DEFINITIONS_FOLDER: ./Definitions @@ -67,6 +70,9 @@ jobs: prodPlan: name: Plan prod needs: [deployPolicy, deployRoles] + if: | + always() + && !contains(needs.*.result,'failure') uses: ./.github/workflows/plan.yml with: pacEnvironmentSelector: prod