I have multiple services (like frontend, api etc) as docker containers on server. For CI/CD I’m using Github Actions where every service is separate workflow.
name: Frontend
on:
push:
branches:
- main
paths:
- 'frontend/**'
So when I make some change on frontend code, it is building, testing and deployed.
Problem is – many commits are for multiple services at once, for example some feature required change on frontend and backend. This will lead to two workflows runs, but one will deploy sooner which leads to bugs on site.
I cannot find a solution (maybe some action in marketplace?) to fix that. I want all workflows executed by some commit to wait “before finish line” and execute last job (deploy) at same time.