diff --git a/README.md b/README.md
index 6a73a3e5..7b61fcf0 100644
--- a/README.md
+++ b/README.md
@@ -33,7 +33,7 @@ Using the default separator.
| Output | type | example | description |
|:-------------------:|:------------:|:------------------------------:|:----------------------------------------:|
| all_modified_files | `string` | 'new.txt other.png ...' | Select all modified files
*i.e a combination of all added,
copied and modified files (ACM).* |
-| has_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 |
| 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) |
@@ -138,7 +138,7 @@ jobs:
^(mynewfile|custom)
- name: Run step if all files listed above have changed
- if: steps.changed-files-specific.outputs.has_changed
+ if: steps.changed-files-specific.outputs.all_changed
run: |
echo "Both my-file.txt and test.txt have changed."
diff --git a/action.yml b/action.yml
index f3e0d22f..08bafb59 100644
--- a/action.yml
+++ b/action.yml
@@ -42,9 +42,9 @@ outputs:
all_modified_files:
description: List of all copied modified and added files
value: ${{ steps.changed_files.outputs.all_modified_files }}
- has_changed:
+ all_changed:
description: Return true only when all files provided using the files input have all changed.
- value: ${{ steps.changed_files.outputs.has_changed }}
+ value: ${{ steps.changed_files.outputs.all_changed }}
runs:
using: 'composite'
@@ -134,9 +134,9 @@ runs:
IFS=$'\n' SORTED_OUTPUT_ALL_MODIFIED_FILES=($(sort <<<"${OUTPUT_ALL_MODIFIED_FILES[*]}"))
if [[ "${SORTED_INPUT_FILES[*]}" == "${SORTED_OUTPUT_ALL_MODIFIED_FILES[*]}" ]]; then
- echo "::set-output name=has_changed::true"
+ echo "::set-output name=all_changed::true"
else
- echo "::set-output name=has_changed::false"
+ echo "::set-output name=all_changed::false"
fi
echo "::set-output name=added_files::$ADDED"