From 9a74ca7307e43850f1179c1089976a536fc40f3b Mon Sep 17 00:00:00 2001 From: ibo <41344259+sneazy-ibo@users.noreply.github.com> Date: Sun, 23 Jun 2024 21:14:27 +0200 Subject: [PATCH] feat: cherrypick back to old token --- .github/workflows/beta.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/beta.yml b/.github/workflows/beta.yml index 2cfe65f7..669e749f 100644 --- a/.github/workflows/beta.yml +++ b/.github/workflows/beta.yml @@ -199,12 +199,6 @@ jobs: if [ ${#commit_messages} -gt $max_length ]; then commit_messages="${commit_messages:0:$max_length}... (truncated)" fi - - commit_messages=$(echo "$COMMIT_LOG" | - sed -E 's/%0A/\n/g' | - sed -E 's/ \[֍\]\(https?:\/\/[^)]+\)//g' | - sed -E ':a;N;$!ba;s/\n/\\n/g' | - sed -E 's/\\\\/\\/g') # Construct Discord payload discord_data=$(jq -nc \ @@ -259,7 +253,7 @@ jobs: # Send Telegram message with APK upload if [ "$SKIP_BUILDING_APK" != "true" ]; then - commit_messages=$(echo "$COMMIT_LOG" | sed -E 's/ \[֍\]\(https?:\/\/[^)]+\)//g') + commit_messages=$(echo "$COMMIT_LOG" | sed 's/[ ]*\[.*$//') 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}" \