From 830658002d793e5efbd069dd39709c5d7b2754ff Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Mon, 7 Feb 2022 22:52:51 -0500 Subject: [PATCH] chore: expose internal files-separator input (#346) --- README.md | 1 + action.yml | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1c6cfd1a..33a4ffbd 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 3da4d3e2..893af588 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: |