From 570809f09a2f030293497677d3b86bf9ab47e040 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Sat, 1 May 2021 08:31:24 -0400 Subject: [PATCH] Update action.yml --- action.yml | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/action.yml b/action.yml index 8b85dbfe..669d6b78 100644 --- a/action.yml +++ b/action.yml @@ -112,20 +112,19 @@ runs: UNKNOWN+=$(git diff --diff-filter=X --name-only "$HEAD_SHA" | grep -E "(${path})" || true) ALL_CHANGED+=$(git diff --diff-filter='*ACDMRTUX' --name-only "$HEAD_SHA" | grep -E "(${path})" || true) ALL_MODIFIED_FILES+=$(git diff --diff-filter='ACM' --name-only "$HEAD_SHA" | grep -E "(${path})" || true) + done - IFS=${{ inputs.separator }} - - echo "::set-output name=added_files::${ADDED[*]}" - echo "::set-output name=copied_files::${COPIED[*]}" - echo "::set-output name=deleted_files::${DELETED[*]}" - echo "::set-output name=modified_files::${MODIFIED[*]}" - echo "::set-output name=renamed_files::${RENAMED[*]}" - echo "::set-output name=changed_files::${CHANGED[*]}" - echo "::set-output name=unmerged_files::${UNMERGED[*]}" - echo "::set-output name=unknown_files::${UNKNOWN[*]}" - echo "::set-output name=all_changed_files::${ALL_CHANGED[*]}" - echo "::set-output name=all_modified_files::${ALL_MODIFIED_FILES[*]}" + echo "::set-output name=added_files::$(IFS='${{ inputs.separator }}'; echo '${ADDED[*]}')" + echo "::set-output name=copied_files::$(IFS='${{ inputs.separator }}'; echo '${COPIED[*]}'" + echo "::set-output name=deleted_files::$(IFS='${{ inputs.separator }}'; echo '${DELETED[*]}'" + echo "::set-output name=modified_files::$(IFS='${{ inputs.separator }}'; echo '${MODIFIED[*]}'" + echo "::set-output name=renamed_files::$(IFS='${{ inputs.separator }}'; echo '${RENAMED[*]}'" + echo "::set-output name=changed_files::$(IFS='${{ inputs.separator }}'; echo '${CHANGED[*]}'" + echo "::set-output name=unmerged_files::$(IFS='${{ inputs.separator }}'; echo '${UNMERGED[*]}'" + echo "::set-output name=unknown_files::$(IFS='${{ inputs.separator }}'; echo '${UNKNOWN[*]}'" + echo "::set-output name=all_changed_files::$(IFS='${{ inputs.separator }}'; echo '${ALL_CHANGED[*]}'" + echo "::set-output name=all_modified_files::$(IFS='${{ inputs.separator }}'; echo '${ALL_MODIFIED_FILES[*]}'" fi shell: bash