8484              - '.github/workflows/deploy.yml' 
8585              - 'argocd/monitoring.yml' 
8686              - '.github/workflows/monitoring.yml' 
87+        
88+       - name : Debug - List changed files 
89+         run : | 
90+           echo "Changed files in this push:" 
91+           git diff --name-only HEAD~1 HEAD || echo "No previous commit to compare" 
92+           echo "App changed: ${{ steps.changes.outputs.app }}" 
93+           echo "Infra changed: ${{ steps.changes.outputs.infra }}" 
8794
95+    #  CI Tests - runs when app changes or manual dispatch
8896  ci :
8997    name : Run CI Tests 
9098    needs : [detect-changes] 
@@ -185,14 +193,14 @@ jobs:
185193      id-token : write 
186194      actions : read 
187195
188-   #  Monitoring - runs after deployment when infra changes or manual dispatch 
196+   #  Monitoring - runs in parallel with deployment after ArgoCD 
189197  monitoring :
190198    name : Deploy Monitoring Stack 
191-     needs : [deployment , detect-changes] 
199+     needs : [argocd , detect-changes] 
192200    if : | 
193201      !cancelled() && 
194202      !inputs.skip-monitoring &&  
195-       (needs.deployment .result == 'success' || (needs.deployment .result == 'skipped' && inputs.skip-deployment )) && ( 
203+       (needs.argocd .result == 'success' || (needs.argocd .result == 'skipped' && inputs.skip-argocd )) && ( 
196204        inputs.force-all ||  
197205        (github.event_name == 'workflow_dispatch') || 
198206        needs.detect-changes.outputs.infra-changed == 'true' 
@@ -205,15 +213,14 @@ jobs:
205213      id-token : write 
206214      actions : read 
207215
208-   #  Show endpoints - runs at the end when any deployment happened 
216+   #  Show endpoints - runs after both deployment and monitoring complete 
209217  show-endpoints :
210218    name : Show Service Endpoints 
211-     needs : [detect-changes, argocd,  deployment, monitoring] 
219+     needs : [detect-changes, deployment, monitoring] 
212220    if : | 
213221      !cancelled() && ( 
214222        (github.event_name == 'workflow_dispatch') || 
215223        (needs.detect-changes.outputs.infra-changed == 'true' && ( 
216-           needs.argocd.result == 'success' ||  
217224          needs.deployment.result == 'success' ||  
218225          needs.monitoring.result == 'success' 
219226        )) 
0 commit comments