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