diff --git a/README.md b/README.md index f7e0e328..e908b079 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,7 @@ Using the default separator. |:-------------------:|:------------:|:------------------------------:|:----------------------------------------:| | all_modified_files | `string` | 'new.txt other.png ...' | Select all modified files
*i.e a combination of all added,
copied and modified files (ACM).* | | 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 (*)
*i.e a combination of all options below.* | | 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) | diff --git a/action.yml b/action.yml index 585d4bfb..39f32db2 100644 --- a/action.yml +++ b/action.yml @@ -94,7 +94,6 @@ runs: do echo "Checking for file changes: \"${path}\"..." IFS=" " - 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)") DELETED_ARRAY+=("$(git diff --diff-filter=D --name-only "$HEAD_SHA" | grep -E "(${path})" | xargs printf "%s$INPUT_SEPARATOR" || true)")