This action lets you find which areas of your repository has changed, so you can customize or skip parts of subsequent workflows.
By default all changes are reported, but the action can be configured to only consider certain folders or files and certain depths.
The action produces both a list of relevant changes and a pattern for these changes.
- uses: ./.github/actions/find-diff-action
- uses: ./.github/actions/find-diff-action
with:
paths: */
- uses: ./.github/actions/find-diff-action
with:
paths: src doc
- uses: ./.github/actions/find-diff-action
with:
paths: src/**/ doc/**/
- uses: ./.github/actions/find-diff-action
with:
paths: **/*.*
- uses: ./.github/actions/find-diff-action
with:
paths: classes/*/*/
The action outputs three variables, one is a plain new line separated list of changes, the second a regular expression that can match everything on the list of changes and the third is a boolean indication of if there was any matches.
.github/workflows/tests
action.yaml
LICENSE
^.github/workflows/tests|^action.yaml|^LICENSE
true
The scripts and documentation in this project are released under the MIT License