Added support for retrieving the files input using a source file. (#132)
This commit is contained in:
17
README.md
17
README.md
@@ -99,6 +99,7 @@ jobs:
|
||||
| separator | `string` | `true` | `' '` | Output string separator |
|
||||
| files | `string` OR `string[]` | `false` | | Check for changes <br> using only these list of file(s) <br> (Defaults to the entire repo) |
|
||||
| sha | `string` | `true` | `${{ github.sha }}` | Specify a different <br> commit SHA used for comparing changes |
|
||||
| files-from-source-file | `string` | `false` | | Source file used populate <br> the files input. |
|
||||
|
||||
## Example
|
||||
|
||||
@@ -150,6 +151,22 @@ jobs:
|
||||
if: steps.changed-files-specific.outputs.any_changed == 'true'
|
||||
run: |
|
||||
echo "One or more files listed above has changed."
|
||||
|
||||
- name: Use a source file or list of file(s) to populate to files input.
|
||||
id: changed-files-specific-source-file
|
||||
uses: ./
|
||||
with:
|
||||
files-from-source-file: |
|
||||
test/changed-files-list.txt
|
||||
|
||||
- name: Use a source file or list of file(s) to populate to files input and optionally specify more files.
|
||||
id: changed-files-specific-source-file-and-specify-files
|
||||
uses: ./
|
||||
with:
|
||||
files-from-source-file: |
|
||||
test/changed-files-list.txt
|
||||
files: |
|
||||
.github/workflows/rebase.yml
|
||||
|
||||
- name: Use a different commit SHA
|
||||
id: changed-files-comma
|
||||
|
||||
Reference in New Issue
Block a user