Github actions reusable - paths-ignore

I have the following doubt, the parts paths-ignore, they can be moved to the reusable flow, so as not to repeat,

on:
  pull_request:
    paths-ignore:
      - 'docs/**'
      - 'README.md'
      - 'CHANGELOG.md'
      - '.gitignore'
      - '.gitattributes'
      - 'infection.json.dist'
      - 'psalm.xml'

  push:
    paths-ignore:
      - 'docs/**'
      - 'README.md'
      - 'CHANGELOG.md'
      - '.gitignore'
      - '.gitattributes'
      - 'infection.json.dist'
      - 'psalm.xml'

Thks,

At present there does not appear to be any way to do what you want.

An ancient version of YAML had support for a thing that could handle this. That feature was dropped from YAML and GitHub never supported it.

At the expense of a running job, you could have a job that does the equivalent and then have your main jobs depend on it. That would allow you to avoid duplicating content, but you’d pay for billable runtime.

I think this is the popular one:

Disclaimer: I randomly contribute to projects. That doesn’t mean I use them and it certainly doesn’t mean I endorse them. (In this case, there’s a single maintainer, w/ 87 commits, and I’ve made 3 commits.)