R
Railway2y ago
Faey

Prevent redeploy of unchanged services when using monorepo

When using Monorepos. Is there a way to prevent a service from getting redeployed via GitHub hooks if none of the files involved in building it have changed?
Solution:
this is exactly what watch paths are for! https://docs.railway.app/deploy/builds#watch-paths...
Jump to solution
6 Replies
Percy
Percy2y ago
Project ID: N/A
luna
luna2y ago
are you using a github action for this or the built in deploy option?
Faey
Faey2y ago
Currently I am using the built-in autodeploy
luna
luna2y ago
someone else might know but i have a feeling you may need to switch over to using github actions for this so you can then add a step that prevents it deploying as you said.
Solution
Brody
Brody2y ago
this is exactly what watch paths are for! https://docs.railway.app/deploy/builds#watch-paths
Faey
Faey2y ago
awesome!
Want results from more Discord servers?
Add your server