3
0
Fork 0
mirror of https://github.com/tj-actions/changed-files synced 2025-01-18 03:57:42 +00:00

Update entrypoint.sh

This commit is contained in:
Tonye Jack 2021-09-05 14:21:28 -04:00 committed by GitHub
parent cfcb385d2b
commit 81ad4b8744
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -155,7 +155,7 @@ else
OTHER_DELETED_FILES=$(echo "${OTHER_DELETED_FILES_ARRAY[*]}" | tr " " "\n" | sort -u | awk -v d="$INPUT_SEPARATOR" '{s=(NR==1?s:s d)$0}END{print s}') OTHER_DELETED_FILES=$(echo "${OTHER_DELETED_FILES_ARRAY[*]}" | tr " " "\n" | sort -u | awk -v d="$INPUT_SEPARATOR" '{s=(NR==1?s:s d)$0}END{print s}')
echo "Matching modified files: ${UNIQUE_DELETED_FILES_ARRAY[*]}" echo "Matching deleted files: ${UNIQUE_DELETED_FILES_ARRAY[*]}"
if [[ -n "${UNIQUE_DELETED_FILES_ARRAY[*]}" ]]; then if [[ -n "${UNIQUE_DELETED_FILES_ARRAY[*]}" ]]; then
echo "::set-output name=any_deleted::true" echo "::set-output name=any_deleted::true"
@ -164,7 +164,7 @@ else
fi fi
if [[ -n "${OTHER_DELETED_FILES_ARRAY[*]}" ]]; then if [[ -n "${OTHER_DELETED_FILES_ARRAY[*]}" ]]; then
echo "Non Matching modified files: ${OTHER_DELETED_FILES_ARRAY[*]}" echo "Non Matching deleted files: ${OTHER_DELETED_FILES_ARRAY[*]}"
echo "::set-output name=only_deleted::false" echo "::set-output name=only_deleted::false"
echo "::set-output name=other_deleted_files::$OTHER_DELETED_FILES" echo "::set-output name=other_deleted_files::$OTHER_DELETED_FILES"
elif [[ -n "${UNIQUE_DELETED_FILES_ARRAY[*]}" ]]; then elif [[ -n "${UNIQUE_DELETED_FILES_ARRAY[*]}" ]]; then