ChrisJ
ChrisJ

Reputation: 2792

Github actions filter jobs or steps by push path

We've got some actions that it makes sense to logically group in one workflow, but not all of them need to run all the time.

I'm aware of

on:
  push:
    paths:
    - 'docs/**'

Is there a way to apply this information at the level of a particular job or step?

Upvotes: 20

Views: 9594

Answers (1)

w5l
w5l

Reputation: 5746

Not out of the box, but you can use actions like dorny/paths-filter to build this behavior.

Upvotes: 17

Related Questions