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.
This commit is contained in:
Chesnokov Gleb
2022-01-17 04:51:53 +03:00
committed by Gleb Chesnokov
parent be99c4abca
commit 60338c1d15
+3 -3
View File
@@ -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}}
===================================================================