Skip to content

Commit

Permalink
Switch space -> comma separated args
Browse files Browse the repository at this point in the history
And reuse the previous (shorter) description of the input
  • Loading branch information
sheck committed Oct 10, 2024
1 parent 70f8eaa commit 9f8c6c0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ inputs:
required: false
default: "."
extensions:
description: Space separated list of extenions. Only changed files with these extensions will be passed to ESlint.
description: A comma separated list of extensions to run ESLint on.
required: false
default: ".js .ts .jsx .tsx .mjs .cjs"
default: ".js,.ts,.jsx,.tsx,.mjs,.cjs"
outputs:
warning-count:
description: "Number of relevant warnings found"
Expand Down
2 changes: 1 addition & 1 deletion 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 src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ async function run() {

core.debug(`Changed files: ${changedFiles}`)

let extensions = core.getInput("extensions").split(" ")
let extensions = core.getInput("extensions").split(",")
core.debug(`Extensions: ${extensions}`)
let changedFilesMatchingExtensions = changedFiles.filter((file) =>
extensions.some((ext) => file.endsWith(ext)),
Expand Down

0 comments on commit 9f8c6c0

Please sign in to comment.