diff --git a/.github/workflows/discord-webook.yml b/.github/workflows/discord-webook.yml index ab47f95d..d5927d9f 100644 --- a/.github/workflows/discord-webook.yml +++ b/.github/workflows/discord-webook.yml @@ -20,7 +20,9 @@ jobs: - name: Get embed details id: embed_details run: | - echo "COMMIT_MESSAGE=$(git log --no-merges -1 --pretty="commit %h: %B")" >> $GITHUB_ENV + COMMIT_MESSAGE=$(git log --no-merges -1 --pretty="commit %h: %B")" + 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 echo "EMBED_TITLE=Pull Request: ${{ github.event.pull_request.title }} (#${{ github.event.pull_request.number }}) Opened" >> $GITHUB_ENV