From 20dbd8eeac4ac8bee6922debf4cb941cd00e1f99 Mon Sep 17 00:00:00 2001 From: ibo <41344259+sneazy-ibo@users.noreply.github.com> Date: Sun, 23 Jun 2024 20:09:05 +0200 Subject: [PATCH] test: %0A bug %% 00 AA %%0AAA --- .github/workflows/beta.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/beta.yml b/.github/workflows/beta.yml index 8a147506..7d2feed1 100644 --- a/.github/workflows/beta.yml +++ b/.github/workflows/beta.yml @@ -189,18 +189,18 @@ jobs: else thumbnail_url="https://i.imgur.com/5o3Y9Jb.gif" fi - - commit_messages=$(echo "$COMMIT_LOG" | sed -E 's/ \[֍\]\(https?:\/\/[^)]+\)//g') - commit_messages=$(echo "$COMMIT_LOG" | sed 's/%0A/\n/g; s/^/\n/') # Truncate field values max_length=1000 + commit_messages=$(echo "$COMMIT_LOG" | sed 's/%0A/\n/g; s/^/\n/') if [ ${#developers} -gt $max_length ]; then developers="${developers:0:$max_length}... (truncated)" fi if [ ${#commit_messages} -gt $max_length ]; then commit_messages="${commit_messages:0:$max_length}... (truncated)" fi + + commit_messages=$(echo "$COMMIT_LOG" | sed -E 's/ \[֍\]\(https?:\/\/[^)]+\)//g') # Construct Discord payload discord_data=$(jq -nc \