Added support for retrieving the files input using a source file. (#132)

This commit is contained in:
Tonye Jack
2021-07-17 10:51:08 -04:00
committed by GitHub
parent 256e64f4cc
commit bd55e90a0a
5 changed files with 88 additions and 5 deletions

View File

@@ -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