13
0
Fork 0
mirror of https://github.com/dorny/paths-filter.git synced 2026-07-03 14:19:30 +00:00
This commit is contained in:
Rebecca Turner 2026-03-11 15:12:11 -04:00 committed by GitHub
commit 501955ab38
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 374 additions and 169 deletions

View file

@ -1,6 +1,6 @@
name: 'Paths Changes Filter'
name: 'Paths Changes Filter And Diff Stat'
description: 'Execute your workflow steps only if relevant files are modified.'
author: 'Michal Dorner <dorner.michal@gmail.com>'
author: 'Michal Dorner <dorner.michal@gmail.com>, Boris Lykah<lykahb@gmail.com>'
inputs:
token:
description: 'GitHub Access Token'
@ -36,6 +36,16 @@ inputs:
Backslash escapes every potentially unsafe character.
required: false
default: none
stat:
description: |
Enables listing of that enables output of the file change statistics per filter, similar to `git diff --shortstat`.
If some changes do not match any filter, the output includes an additional entry with the filter name 'other'.
'none' - Disables listing of stats (default).
'csv' - Coma separated list that has name of filter, count of additions, count of deletions, count of changed files.
If needed it uses double quotes to wrap name of filter with unsafe characters. For example, `"some filter",12,7,2`.
'json' - Serialized as JSON object where the filter names are keys. For example, `{"some filter": {"additionCount": 12, "deletionCount": 7, "fileCount": 2}}`
required: false
default: none
initial-fetch-depth:
description: |
How many commits are initially fetched from base branch.