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:
parent
cfcb385d2b
commit
81ad4b8744
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue