Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 16 additions & 14 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,59 +12,59 @@ inputs:
excluded-files:
description: 'Excluded file patterns (optionally include `!` before the file pattern or it would be prepended)'
required: false
default: ""
default: ''
excluded-files-separator:
description: 'Separator used to split the `excluded-files` input'
default: "\n"
required: false
files-from-source-file:
description: 'Source file to populate the `files` input'
required: false
default: ""
default: ''
files-from-source-file-separator:
description: 'Separator used to split the `files-from-source-file` input'
default: "\n"
required: false
excluded-files-from-source-file:
description: 'Source file to populate the `excluded-files` input'
required: false
default: ""
default: ''
excluded-files-from-source-file-separator:
description: 'Separator used to split the `excluded-files-from-source-file` input'
default: "\n"
required: false
follow-symbolic-links:
description: 'Indicates whether to follow symbolic links'
default: "true"
default: 'true'
required: true
match-directories:
description: 'Indicates whether to include matched directories'
default: "true"
default: 'true'
required: true
match-gitignore-files:
description: 'Indicates whether to match files in `.gitignore`'
default: "false"
default: 'false'
required: true
read-gitignore:
description: 'Indicates whether to read `.gitignore`. The `.gitignore` file will be ignored if set to `false`. Overrides `match-gitignore-files`'
default: "true"
default: 'true'
required: true
separator:
description: 'Separator used for the paths output.'
required: true
default: " "
default: ' '
safe-output:
description: 'Escape special characters of filenames used in the `paths` output'
required: false
default: "true"
default: 'true'
strip-top-level-dir:
description: 'Strip the `$GITHUB_WORKSPACE` from the `paths` output'
required: false
default: "true"
default: 'true'
include-deleted-files:
description: 'Include all matching deleted files'
required: false
default: "false"
default: 'false'
base-ref:
description: 'Specify a base ref used for comparing changes, when `include-deleted-files` is set to `true`'
required: false
Expand All @@ -90,11 +90,13 @@ inputs:

outputs:
paths:
description: "List of filtered paths using the specified patterns and separator"
description: 'List of filtered paths using the specified patterns and separator'
paths-json:
description: 'JSON list of filtered paths using the specified patterns'
paths-output-file:
description: "List of filtered paths using the specified patterns and separator stored in a temporary file"
description: 'List of filtered paths using the specified patterns and separator stored in a temporary file'
has-custom-patterns:
description: "Indicates whether at least one pattern was provided"
description: 'Indicates whether at least one pattern was provided'

runs:
using: 'node20'
Expand Down
1 change: 1 addition & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ export async function run(): Promise<void> {
core.info(`Successfully created paths-output-file: ${pathsOutputFile}`)

core.setOutput('paths', pathsOutput)
core.setOutput('paths-json', [...paths])
core.setOutput('has-custom-patterns', hasCustomPatterns)
}

Expand Down