mirror of
https://github.com/tj-actions/changed-files
synced 2024-12-17 03:47:20 +00:00
Update README.md (#48)
This commit is contained in:
parent
e2bd4f229f
commit
05fe5a1454
2 changed files with 1 additions and 1 deletions
|
@ -36,6 +36,7 @@ Using the default separator.
|
||||||
|:-------------------:|:------------:|:------------------------------:|:----------------------------------------:|
|
|:-------------------:|:------------:|:------------------------------:|:----------------------------------------:|
|
||||||
| all_modified_files | `string` | 'new.txt other.png ...' | Select all modified files <br /> *i.e a combination of all added, <br />copied and modified files (ACM).* |
|
| all_modified_files | `string` | 'new.txt other.png ...' | Select all modified files <br /> *i.e a combination of all added, <br />copied and modified files (ACM).* |
|
||||||
| all_changed | `string` | `true OR false` | Returns `true` only when the filenames provided using `files` input have all changed |
|
| all_changed | `string` | `true OR false` | Returns `true` only when the filenames provided using `files` input have all changed |
|
||||||
|
| any_changed | `string` | `true OR false` | Returns `true` when any of the filenames provided using `files` input have changed |
|
||||||
| all_changed_files | `string` | 'new.txt other.png ...' | Select all paths (*) <br /> *i.e a combination of all options below.* |
|
| all_changed_files | `string` | 'new.txt other.png ...' | Select all paths (*) <br /> *i.e a combination of all options below.* |
|
||||||
| added_files | `string` | 'new.txt other.png ...' | Select only files that are Added (A) |
|
| added_files | `string` | 'new.txt other.png ...' | Select only files that are Added (A) |
|
||||||
| copied_files | `string` | 'new.txt other.png ...' | Select only files that are Copied (C) |
|
| copied_files | `string` | 'new.txt other.png ...' | Select only files that are Copied (C) |
|
||||||
|
|
|
@ -94,7 +94,6 @@ runs:
|
||||||
do
|
do
|
||||||
echo "Checking for file changes: \"${path}\"..."
|
echo "Checking for file changes: \"${path}\"..."
|
||||||
IFS=" "
|
IFS=" "
|
||||||
|
|
||||||
ADDED_ARRAY+=("$(git diff --diff-filter=A --name-only "$HEAD_SHA" | grep -E "(${path})" | xargs printf "%s$INPUT_SEPARATOR" || true)")
|
ADDED_ARRAY+=("$(git diff --diff-filter=A --name-only "$HEAD_SHA" | grep -E "(${path})" | xargs printf "%s$INPUT_SEPARATOR" || true)")
|
||||||
COPIED_ARRAY+=("$(git diff --diff-filter=C --name-only "$HEAD_SHA" | grep -E "(${path})" | xargs printf "%s$INPUT_SEPARATOR" || true)")
|
COPIED_ARRAY+=("$(git diff --diff-filter=C --name-only "$HEAD_SHA" | grep -E "(${path})" | xargs printf "%s$INPUT_SEPARATOR" || true)")
|
||||||
DELETED_ARRAY+=("$(git diff --diff-filter=D --name-only "$HEAD_SHA" | grep -E "(${path})" | xargs printf "%s$INPUT_SEPARATOR" || true)")
|
DELETED_ARRAY+=("$(git diff --diff-filter=D --name-only "$HEAD_SHA" | grep -E "(${path})" | xargs printf "%s$INPUT_SEPARATOR" || true)")
|
||||||
|
|
Loading…
Reference in a new issue