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 337e3e8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
| `failure-level` | The lowest annotation level to fail on ("warning or "error"") | no | `"error"` |
| `conclusion-level` | Action conclusion ("success" or "failure") if annotations of the failure-level were created. | no | `"success"` |
| `working-directory` | Which directory to run the action in | no | `"."` |
| `extensions` | Space separated list of extenions. Only changed files with these extensions will be passed to ESlint. | no | `".js .ts .jsx .tsx .mjs .cjs"` |
| `extensions` | A comma separated list of extensions to run ESLint on. | no | `".js,.ts,.jsx,.tsx,.mjs,.cjs"` |

## Outputs

Expand Down
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 337e3e8

Please sign in to comment.