From 05fe5a1454d06db4d3112725313f453db6de8307 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Sat, 1 May 2021 19:17:05 -0400 Subject: [PATCH] Update README.md (#48) --- README.md | 1 + action.yml | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) 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)")