diff --git a/.github/workflows/discord-webook.yml b/.github/workflows/discord-webook.yml index 01f4658..92c1806 100644 --- a/.github/workflows/discord-webook.yml +++ b/.github/workflows/discord-webook.yml @@ -20,8 +20,8 @@ jobs: - name: Get embed details id: embed_details run: | - COMMIT_MESSAGE="$(git log --no-merges -1 --pretty="commit %h: %B")" - SAFE_COMMIT_MESSAGE=$(echo "$COMMIT_MESSAGE" | tr -d '\r\n' | sed 's/[*://]/_/g') + COMMIT_MESSAGE="$(git log --no-merges -1 --pretty="commit %h: %s")" + SAFE_COMMIT_MESSAGE=$(echo "$COMMIT_MESSAGE" | tr -d '\r\n' | sed 's/[*//]/_/g') echo "COMMIT_MESSAGE=$SAFE_COMMIT_MESSAGE" >> $GITHUB_ENV if [ "${{ github.event_name }}" == "pull_request" ]; then if [ "${{ github.event.action }}" == "opened" ] || [ "${{ github.event.action }}" == "reopened" ]; then