2020-10-01 08:55:29 +00:00
|
|
|
name: 'Paths Changes Filter'
|
2020-06-15 19:49:10 +00:00
|
|
|
description: 'Execute your workflow steps only if relevant files are modified.'
|
2020-05-20 22:31:39 +00:00
|
|
|
author: 'Michal Dorner <dorner.michal@gmail.com>'
|
2020-05-20 15:03:08 +00:00
|
|
|
inputs:
|
2020-05-26 15:16:09 +00:00
|
|
|
token:
|
2020-05-20 23:37:33 +00:00
|
|
|
description: 'GitHub Access Token'
|
2020-05-26 15:16:09 +00:00
|
|
|
required: false
|
2020-05-24 19:17:51 +00:00
|
|
|
default: ${{ github.token }}
|
2020-07-02 20:56:14 +00:00
|
|
|
working-directory:
|
|
|
|
description: 'Relative path under $GITHUB_WORKSPACE where the repository was checked out.'
|
|
|
|
required: false
|
2020-06-24 19:53:31 +00:00
|
|
|
base:
|
|
|
|
description: |
|
|
|
|
Git reference (e.g. branch name) against which the changes will be detected. Defaults to repository default branch (e.g. master).
|
|
|
|
If it references same branch it was pushed to, changes are detected against the most recent commit before the push.
|
|
|
|
This option is ignored if action is triggered by pull_request event.
|
|
|
|
required: false
|
2020-05-20 22:31:39 +00:00
|
|
|
filters:
|
2020-05-24 20:50:33 +00:00
|
|
|
description: 'Path to the configuration file or YAML string with filters definition'
|
2020-09-01 20:47:38 +00:00
|
|
|
required: true
|
2020-08-30 19:18:14 +00:00
|
|
|
list-files:
|
|
|
|
description: |
|
|
|
|
Enables listing of files matching the filter:
|
|
|
|
'none' - Disables listing of matching files (default).
|
2021-02-20 10:21:30 +00:00
|
|
|
'csv' - Coma separated list of filenames.
|
|
|
|
If needed it uses double quotes to wrap filename with unsafe characters.
|
2020-12-13 20:07:47 +00:00
|
|
|
'json' - Serialized as JSON array.
|
|
|
|
'shell' - Space delimited list usable as command line argument list in linux shell.
|
|
|
|
If needed it uses single or double quotes to wrap filename with unsafe characters.
|
|
|
|
'escape'- Space delimited list usable as command line argument list in linux shell.
|
|
|
|
Backslash escapes every potentially unsafe character.
|
2020-09-01 20:47:38 +00:00
|
|
|
required: true
|
2020-08-30 19:18:14 +00:00
|
|
|
default: none
|
2020-09-01 20:47:38 +00:00
|
|
|
initial-fetch-depth:
|
|
|
|
description: |
|
|
|
|
How many commits are initially fetched from base branch.
|
|
|
|
If needed, each subsequent fetch doubles the previously requested number of commits
|
|
|
|
until the merge-base is found or there are no more commits in the history.
|
|
|
|
This option takes effect only when changes are detected using git against different base branch.
|
|
|
|
required: false
|
2021-03-08 16:06:12 +00:00
|
|
|
default: '100'
|
2020-12-17 21:33:11 +00:00
|
|
|
outputs:
|
|
|
|
changes:
|
|
|
|
description: JSON array with names of all filters matching any of changed files
|
2020-05-20 15:03:08 +00:00
|
|
|
runs:
|
|
|
|
using: 'node12'
|
|
|
|
main: 'dist/index.js'
|
2020-05-20 22:31:39 +00:00
|
|
|
branding:
|
|
|
|
color: blue
|
2020-07-11 21:33:11 +00:00
|
|
|
icon: filter
|