Update action.yml

This commit is contained in:
Tonye Jack 2021-05-01 09:14:27 -04:00 committed by GitHub
parent fdc23e7274
commit 1e435854e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -124,6 +124,14 @@ runs:
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"
echo "::set-output name=deleted_files::$DELETED"