mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-01-28 02:01:01 +00:00
feat: cherrypick back to old token
This commit is contained in:
8
.github/workflows/beta.yml
vendored
8
.github/workflows/beta.yml
vendored
@@ -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}" \
|
||||
|
||||
Reference in New Issue
Block a user