Skip to content

Commit

Permalink
fix files list
Browse files Browse the repository at this point in the history
  • Loading branch information
yrtimiD committed Apr 19, 2024
1 parent 010f8b8 commit 0ce0df8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/commit-notify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,15 @@ jobs:
SHA=${{ matrix.notif.commit.sha }}
SUBJ=$(echo "${{ matrix.notif.commit.commit.message }}" | head -1)
EMAIL_SUBJ="[$GITHUB_REPOSITORY] ${SHA:0:10} $SUBJ"
EMAIL_BODY="Author: ${{ matrix.notif.commit.commit.author.name }} ${{ matrix.notif.commit.commit.author.email }}
FILES=$( echo '${{ toJSON(matrix.notif.commit.files) }}' | jq --raw-output '.[].filename | select(. != null)' )
EMAIL_BODY=$(cat <<- ___EOF___
Author: ${{ matrix.notif.commit.commit.author.name }} ${{ matrix.notif.commit.commit.author.email }}
Message: ${{ matrix.notif.commit.commit.message }}
Files:
$( echo '${{ toJSON(matrix.notif.commit.files) }}' | jq --raw-output '.[].filename | select(. != null)' )
$FILES
Commit: ${{ matrix.notif.commit.html_url }}
"
___EOF___
)
echo "To: $EMAIL_TO"
echo "Subj: $EMAIL_SUBJ"
Expand Down

0 comments on commit 0ce0df8

Please sign in to comment.