Skip to content
Discussion options

You must be logged in to vote

This is a very common and critical challenge in monorepos. The best and most efficient solution is to use the paths-filter action, which leverages the git diff command under the hood to determine the changed files and set output variables that can be used in the if condition of your jobs.Here is a step-by-step guide and the YAML implementation:1. Use the paths-filter Action

The dorny/paths-filter action is the industry standard for this use case. It allows you to define a map of paths and will output a boolean (true or false) for each map key, indicating if any files in that path have changed.2. Implementation in Workflow YAML

You will add a new job (or step in an existing job) to calcula…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Litis-Trion250
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Actions Build, test, and automate your deployment pipeline with world-class CI/CD Question Ask and answer questions about GitHub features and usage Workflow Deployment Topics about deploying workflows, publishing artifacts, and deployment targets in GitHub Actions. Misc General discussions about GitHub Actions that don't fit other found themes.
3 participants