From ea45caa5107fe20127656a79555e54c53a511f23 Mon Sep 17 00:00:00 2001 From: ibo <41344259+sneazy-ibo@users.noreply.github.com> Date: Sun, 23 Jun 2024 20:53:30 +0200 Subject: [PATCH] fix: multi line commit trailing --- .github/workflows/beta.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/beta.yml b/.github/workflows/beta.yml index d0809a60..96a26078 100644 --- a/.github/workflows/beta.yml +++ b/.github/workflows/beta.yml @@ -200,7 +200,11 @@ jobs: commit_messages="${commit_messages:0:$max_length}... (truncated)" fi - commit_messages=$(echo "$COMMIT_LOG" | sed -E 's/ \[֍\]\(https?:\/\/[^)]+\)//g') + commit_messages=$(echo "$COMMIT_LOG" | + sed -E 's/%0A/\n/g' | + sed -E 's/ \[֍\]\(https?:\/\/[^)]+\)//g' | + tr '\n' '\r' | + sed -E 's/\r/\\n/g') # Construct Discord payload discord_data=$(jq -nc \