Skip to content

Commit 42d26b4

Browse files
committed
adding conditional trigger to preprod
1 parent c2003d0 commit 42d26b4

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/cicd-3-test-deploy.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,3 +130,4 @@ jobs:
130130
ENVIRONMENT: "test"
131131
VERSION_NUMBER: "main"
132132
secrets: inherit
133+

.github/workflows/cicd-4-preprod-deploy.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
this_sha: ${{ steps.resolver.outputs.this_sha }}
3737
latest_sha: ${{ steps.resolver.outputs.latest_test_sha }}
3838
release_type: ${{ steps.release_type.outputs.release_type }}
39-
39+
if: ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }}
4040
env:
4141
TEST_WORKFLOW_ID: "190123511" # this will need updating if the workflow is recreated
4242
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -97,3 +97,4 @@ jobs:
9797
ref: ${{ needs.metadata.outputs.ref }}
9898
release_type: ${{ needs.metadata.outputs.release_type }}
9999
secrets: inherit
100+
if: ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }}

0 commit comments

Comments
 (0)