From e934fe17aea8abed72dc68d0357aff53878b21a6 Mon Sep 17 00:00:00 2001 From: ibo <41344259+sneazy-ibo@users.noreply.github.com> Date: Sun, 23 Jun 2024 19:43:06 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20sed=20-E=20's/=20\[=D6=8D\]\(https=3F:\?= =?UTF-8?q?/\/[^)]+\)//g')?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/beta.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/beta.yml b/.github/workflows/beta.yml index 0e342881..dc80f5e5 100644 --- a/.github/workflows/beta.yml +++ b/.github/workflows/beta.yml @@ -191,7 +191,8 @@ jobs: fi commit_messages=$(echo "$COMMIT_LOG" | sed 's/%0A/\n/g; s/^/\n/') - commit_messages=$(echo "$COMMIT_LOG" | sed -e 's/ *\[.*)//g') + commit_messages=$(echo "$COMMIT_LOG" | sed -E 's/ \[֍\]\(https?:\/\/[^)]+\)//g') + # Truncate field values max_length=1000 if [ ${#developers} -gt $max_length ]; then @@ -254,7 +255,7 @@ jobs: # Send Telegram message with APK upload if [ "$SKIP_BUILD" != "true" ]; then - commit_messages=$(echo "$COMMIT_LOG" | sed 's/[ ]*\[.*$//') + commit_messages=$(echo "$COMMIT_LOG" | sed -E 's/ \[֍\]\(https?:\/\/[^)]+\)//g') curl -F "chat_id=${{ secrets.TELEGRAM_CHANNEL_ID }}" \ -F "document=@app/build/outputs/apk/google/alpha/app-google-alpha.apk" \ -F "caption=Alpha-Build: ${VERSION}: ${commit_messages}" \