diff --git a/README.md b/README.md index 1c6cfd1a4ff..33a4ffbdfe1 100644 --- a/README.md +++ b/README.md @@ -127,6 +127,7 @@ Support this project with a :star: | token | `string` | `false` | `${{ github.token }}` | [GITHUB\_TOKEN](https://docs.github.com/en/free-pro-team@latest/actions/reference/authentication-in-a-workflow#using-the-github_token-in-a-workflow)
or a repo scoped
[Personal Access Token](https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/creating-a-personal-access-token) | | separator | `string` | `true` | `' '` | Output string separator | | files | `string` OR `string[]` | `false` | | Check for changes
using only these
list of file(s)
(Defaults to the
entire repo) | +| files-separator | string | false | `"\n"` | Separator used to split the
files input | | base\_sha | `string` | `false` | | Specify a different
base commit SHA
used for
comparing changes | | sha | `string` | `true` | `${{ github.sha }}` | Specify a different
commit SHA
used for
comparing changes | | files\_from\_source\_file | `string` | `false` | | Source file
used to populate
the files input | diff --git a/action.yml b/action.yml index 3da4d3e2642..893af5881fc 100644 --- a/action.yml +++ b/action.yml @@ -19,6 +19,10 @@ inputs: description: 'Check for changes using only this list of files (Defaults to the entire repo)' required: false default: "" + files-separator: + description: 'Separator used to split the files input' + default: "\n" + required: false sha: description: 'Specify a current commit SHA used for comparing changes' required: true @@ -117,7 +121,7 @@ runs: id: glob with: files: ${{ inputs.files }} - files-separator: " " + files-separator: ${{ inputs.files-separator }} files-from-source-file: ${{ inputs.files_from_source_file }} separator: "|" - run: |