This commit is contained in:
rebelonion 2024-02-11 04:16:23 -06:00
commit 80f3523f2e
2 changed files with 3 additions and 2 deletions

View file

@ -39,7 +39,7 @@ jobs:
fi
echo "Commits since $LAST_SHA:"
# Accumulate commit logs in a shell variable
COMMIT_LOGS=$(git log $LAST_SHA..HEAD --pretty=format:"%h - %s")
COMMIT_LOGS=$(git log $LAST_SHA..HEAD --pretty=format:"· %s")
# URL-encode the newline characters for GitHub Actions
COMMIT_LOGS="${COMMIT_LOGS//'%'/'%25'}"
COMMIT_LOGS="${COMMIT_LOGS//$'\n'/'%0A'}"
@ -104,7 +104,7 @@ jobs:
#Telegram
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}] Change logs :${commit_messages}" \
-F "caption=Alpha-Build: **${VERSION}** Change logs :${commit_messages}" \
https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendDocument
env:

View file

@ -2,4 +2,5 @@
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_alpha_background" />
<foreground android:drawable="@drawable/ic_launcher_alpha_foreground" />
<monochrome android:drawable="@drawable/mono" />
</adaptive-icon>