From 60338c1d1595e8569680b7f91b6452724702a596 Mon Sep 17 00:00:00 2001 From: Chesnokov Gleb Date: Mon, 17 Jan 2022 03:51:29 +0300 Subject: [PATCH] github: Improve the listing of modified files for the Mailing list action Use --stat option instead of --name-only for the 'Get list of files' step, as it also provides stats on modified files. --- .github/workflows/mail_notification.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/mail_notification.yml b/.github/workflows/mail_notification.yml index fff78f8c9..8d248e83e 100644 --- a/.github/workflows/mail_notification.yml +++ b/.github/workflows/mail_notification.yml @@ -39,7 +39,7 @@ jobs: - name: Get list of files id: get_list_files run: | - files="$(git diff-tree --no-commit-id --name-only -r HEAD)" + files="$(git diff-tree --no-commit-id --stat --stat-name-width=60 --stat-graph-width=15 -r HEAD)" files="${files//'%'/'%25'}" files="${files//$'\n'/'%0A'}" @@ -88,11 +88,11 @@ jobs: Author: ${{matrix.commit.author.name}} Date: ${{matrix.commit.timestamp}} Log Message: - ---------------------- + ----------- ${{matrix.commit.message}} Modified Paths: - ---------------------------- + -------------- ${{steps.get_list_files.outputs.files}} ===================================================================