fix: Fix release pipeline notification (#96)

This commit is contained in:
Yaroslav Rogov 2021-07-21 16:51:12 +03:00 committed by GitHub
parent 7a27699c7e
commit bdcf97a539
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,7 +67,10 @@ jobs:
fi
COMMIT="${{ github.sha }}"
# COMMIT_MSG="${{ github.event.commits[0]['message'] }}"
COMMIT_MSG="$(cat <<EOF | head -n1
${{ github.event.commits[0]['message'] }}
EOF
)"
REPO="${{ github.repository }}"
RUN_ID="${{ github.run_id }}"
@ -126,6 +129,11 @@ jobs:
"short": true,
"title": "Author",
"value": "$AUTHOR_NAME"
},
{
"short": false,
"title": "Message",
"value": "$COMMIT_MSG"
}
],
"color": "$COLOR"