mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-14 09:11:27 +00:00
Add a list of files per commit for github Mailing list action
This commit is contained in:
committed by
Gleb Chesnokov
parent
ff09b47b1a
commit
afb52bc788
20
.github/workflows/mail_notification.yml
vendored
20
.github/workflows/mail_notification.yml
vendored
@@ -36,6 +36,17 @@ jobs:
|
||||
run: |
|
||||
echo ::set-output name=comm_message::$(git log --format=%s -n 1 HEAD)
|
||||
|
||||
- name: Get list of files
|
||||
id: get_list_files
|
||||
run: |
|
||||
files="$(git diff-tree --no-commit-id --name-only -r HEAD)"
|
||||
|
||||
files="${files//'%'/'%25'}"
|
||||
files="${files//$'\n'/'%0A'}"
|
||||
files="${files//$'\r'/'%0D'}"
|
||||
|
||||
echo ::set-output name=files::"$files"
|
||||
|
||||
- name: Get commit diff
|
||||
id: get_comm_diff
|
||||
run: |
|
||||
@@ -77,9 +88,14 @@ jobs:
|
||||
Author: ${{matrix.commit.author.name}}
|
||||
Date: ${{matrix.commit.timestamp}}
|
||||
Log Message:
|
||||
------------------------------
|
||||
----------------------
|
||||
${{matrix.commit.message}}
|
||||
==============================
|
||||
|
||||
Modified Paths:
|
||||
----------------------------
|
||||
${{steps.get_list_files.outputs.files}}
|
||||
|
||||
===================================================================
|
||||
${{steps.get_comm_diff.outputs.comm_diff}}
|
||||
|
||||
# Optional unsigned/invalid certificates allowance:
|
||||
|
||||
Reference in New Issue
Block a user