diff --git a/README.md b/README.md
index bdd3bcd6..185d375f 100644
--- a/README.md
+++ b/README.md
@@ -95,6 +95,7 @@ Using the default separator.
| unmerged_files | `string` | 'new.txt other.png ...' | Select only files that are Unmerged (U) |
| unknown_files | `string` | 'new.txt other.png ...' | Select only files that are Unknown (X) |
| all_changed_files | `string` | 'new.txt other.png ...' | Select all paths (*)
*i.e a combination of all options above.* |
+| all_modified_files | `string` | 'new.txt other.png ...' | Select all modified files (*)
*i.e a combination of all added,
copied and modified files (ACM).* |
## Example
diff --git a/action.yml b/action.yml
index 5c75aac0..1e25f448 100644
--- a/action.yml
+++ b/action.yml
@@ -35,6 +35,9 @@ outputs:
all_changed_files:
description: List of all changed files.
value: ${{ steps.changed-files.outputs.all_changed_files }}
+ all_modified_files:
+ description: List of all changed modified and added files
+ value: ${{ steps.changed-files.outputs.all_modified_files }}
runs:
using: 'composite'
@@ -64,6 +67,7 @@ runs:
UNMERGED=$(git diff --diff-filter=U --name-only "$HEAD_SHA" | tr "\n" "${{ inputs.separator }}" | sed -E 's/(${{ inputs.separator }})$//')
UNKNOWN=$(git diff --diff-filter=X --name-only "$HEAD_SHA" | tr "\n" "${{ inputs.separator }}" | sed -E 's/(${{ inputs.separator }})$//')
ALL_CHANGED=$(git diff --diff-filter='*ACDMRTUX' --name-only "$HEAD_SHA" | tr "\n" "${{ inputs.separator }}" | sed -E 's/(${{ inputs.separator }})$//')
+ ALL_MODIFIED_FILES=$(git diff --diff-filter='ACM' --name-only "$HEAD_SHA" | tr "\n" "${{ inputs.separator }}" | sed -E 's/(${{ inputs.separator }})$//')
echo "Getting diff..."
echo "::set-output name=added_files::$ADDED"
@@ -75,6 +79,7 @@ runs:
echo "::set-output name=unmerged_files::$UNMERGED"
echo "::set-output name=unknown_files::$UNKNOWN"
echo "::set-output name=all_changed_files::$ALL_CHANGED"
+ echo "::set-output name=all_modified_files::$ALL_MODIFIED_FILES"
shell: bash
branding: