Skip to content

Commit

Permalink
Merge 4946682 into dc77836
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 authored Aug 26, 2022
2 parents dc77836 + 4946682 commit defb2c6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions __tests__/main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const defaultEnv = {
'INPUT_EXCLUDED-FILES-SEPARATOR': '\n',
'INPUT_EXCLUDED-FILES-FROM-SOURCE-FILE-SEPARATOR': '\n',
'INPUT_FOLLOW-SYMBOLIC-LINKS': 'true',
'INPUT_MATCH-DIRECTORIES': 'true',
'INPUT_ESCAPE-PATHS': 'false',
INPUT_SEPARATOR: ' ',
'INPUT_STRIP-TOP-LEVEL-DIR': 'true',
Expand Down Expand Up @@ -67,6 +68,7 @@ test('returns the paths of the all other files (input files)', async () => {
'jest.config.js',
'package.json',
'renovate.json',
'src',
'src/cleanup.ts',
'src/utils.ts',
'tsconfig.json',
Expand Down
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ inputs:
description: 'Indicates whether to follow symbolic links'
default: "true"
required: true
match-directories:
description: 'Indicates whether to include match directories'
default: "true"
required: true
separator:
description: 'Separator used for the paths output.'
required: true
Expand Down
5 changes: 4 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ export async function run(): Promise<void> {
const followSymbolicLinks = core.getBooleanInput('follow-symbolic-links', {
required: false
})
const matchDirectories = core.getBooleanInput('match-directories', {
required: false
})
const separator = core.getInput('separator', {
required: true,
trimWhitespace: false
Expand Down Expand Up @@ -153,7 +156,7 @@ export async function run(): Promise<void> {

const globOptions: GlobOptions = {
followSymbolicLinks,
matchDirectories: false
matchDirectories
}
const globber = await glob.create(filePatterns, globOptions)
let paths = await globber.glob()
Expand Down

0 comments on commit defb2c6

Please sign in to comment.