diff --git a/action.yml b/action.yml index 689b8aa6..1f46db48 100644 --- a/action.yml +++ b/action.yml @@ -123,6 +123,14 @@ runs: UNKNOWN=$(echo "$UNKNOWN" | sed -E 's/(${{ inputs.separator }})$//') ALL_CHANGED=$(echo "$ALL_CHANGED" | sed -E 's/(${{ inputs.separator }})$//') ALL_MODIFIED_FILES=$(echo "$ALL_MODIFIED_FILES" | sed -E 's/(${{ inputs.separator }})$//') + + SEP_INPUT_FILES=$(echo $INPUT_FILES || sed -E 's/ /(${{ inputs.separator }})/') + + if [[ $ALL_MODIFIED_FILES -eq $SEP_INPUT_FILES ]]; then + echo "::set-output name=has_changes::true" + else + echo "::set-output name=has_changes::false" + fi echo "::set-output name=added_files::$ADDED" echo "::set-output name=copied_files::$COPIED"