From 1e435854e368c5e0d588594a49b991a8c5873aa5 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Sat, 1 May 2021 09:14:27 -0400 Subject: [PATCH] Update action.yml --- action.yml | 8 ++++++++ 1 file changed, 8 insertions(+) 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"