Loading tutorials
on, jobs, steps, runs-on). It also assumes you know Git branches, pull requests, and diffs, and that you can read YAML. Familiarity with a repository that holds several projects or packages helps, because every example here u2 min readon.push and on.pull_request do. It covers the glob syntax that paths and paths-ignore use, because most filter bugs come from a pattern that does not match what you expect.2 min readon, jobs, steps) and know how pull requests and diffs work. It also assumes you know basic glob patterns. Here you will use path filters to decide whether a whole workflow runs.2 min readpaths filter only works as well as your picture of the file list GitHub compares it against, so this chapter covers where that list comes from.3 min readon.push.paths and on.pull_request.paths work, and understand pull requests and diffs. It covers the cases where a workflow-level path filter gives the wrong result, and why those cases lead to a change-detection job.3 min readon, jobs, steps) and know that job conditions come later in this tutorial. Here you learn only the expression syntax and the contexts that the change-detection pattern relies on.2 min readon, jobs, steps) and know that ${{ }} marks an expression. Contexts such as github and needs are explained as they appear.2 min readneeds and if do at a basic level. Each job runs on its own runner, so a job cannot read another job's shell variables or files. Job outputs are the way to hand a small value from one job to the next. In a monorepo, that2 min readif conditions from earlier chapters. You will build one small job that decides which areas of the repository changed. Later jobs read its answer.2 min readif, as covered earlier. It explains what GitHub Actions does with jobs downstream of a skipped job, because the default behavior surprises many people.2 min readneeds and job if conditions work, and have a change-detection job like the one built earlier. You also need to know what branch protection is, meaning the repository rule that blocks merging until named status checks pass.3 min readdorny/paths-filter, expose its outputs, and gate jobs with if. If not, review those chapters first.2 min readdorny/paths-filter, read job outputs through the needs context, and use if conditions on jobs. Here you turn the list of changed projects into a job matrix, so one job definition fans out into one run per changed project.2 min readif conditions on its outputs, and have a gate job in place. Here you move the per-project steps into one reusable workflow, so a new project needs a filter entry and not a copied job.2 min readdorny/paths-filter, gated jobs with if, and added a gate job for required checks. Here you learn to find out why a filter did or did not fire, and how to adjust it.2 min read