From 42d26b49f4712ad865cfd0568d6ec8ab15efc275 Mon Sep 17 00:00:00 2001 From: TOEL2 Date: Fri, 6 Feb 2026 15:08:47 +0000 Subject: [PATCH] adding conditional trigger to preprod --- .github/workflows/cicd-3-test-deploy.yaml | 1 + .github/workflows/cicd-4-preprod-deploy.yaml | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cicd-3-test-deploy.yaml b/.github/workflows/cicd-3-test-deploy.yaml index 6b264c497..0ffa17b7c 100644 --- a/.github/workflows/cicd-3-test-deploy.yaml +++ b/.github/workflows/cicd-3-test-deploy.yaml @@ -130,3 +130,4 @@ jobs: ENVIRONMENT: "test" VERSION_NUMBER: "main" secrets: inherit + diff --git a/.github/workflows/cicd-4-preprod-deploy.yaml b/.github/workflows/cicd-4-preprod-deploy.yaml index b20e2ff7c..9896be0b6 100644 --- a/.github/workflows/cicd-4-preprod-deploy.yaml +++ b/.github/workflows/cicd-4-preprod-deploy.yaml @@ -36,7 +36,7 @@ jobs: this_sha: ${{ steps.resolver.outputs.this_sha }} latest_sha: ${{ steps.resolver.outputs.latest_test_sha }} release_type: ${{ steps.release_type.outputs.release_type }} - + if: ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }} env: TEST_WORKFLOW_ID: "190123511" # this will need updating if the workflow is recreated GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -97,3 +97,4 @@ jobs: ref: ${{ needs.metadata.outputs.ref }} release_type: ${{ needs.metadata.outputs.release_type }} secrets: inherit + if: ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }}