Skip to content

Commit 3fc9b7d

Browse files
committed
Fix skipped stages - make model performance and monitoring run on all pushes
1 parent 55c2ffc commit 3fc9b7d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/ci-cd.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ jobs:
171171
name: Model Performance Check
172172
runs-on: ubuntu-latest
173173
needs: data-validation
174-
if: github.event_name == 'pull_request'
174+
if: always() && needs.data-validation.result == 'success'
175175
steps:
176176
- name: Checkout code
177177
uses: actions/checkout@v4
@@ -286,8 +286,8 @@ jobs:
286286
monitoring-setup:
287287
name: Setup Monitoring and Alerts
288288
runs-on: ubuntu-latest
289-
needs: build
290-
if: github.ref == 'refs/heads/main'
289+
needs: [data-validation, security-scan]
290+
if: always() && (needs.data-validation.result == 'success' && needs.security-scan.result == 'success')
291291
steps:
292292
- name: Checkout code
293293
uses: actions/checkout@v4

0 commit comments

Comments
 (0)