diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 7cb3e07606..011367de58 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -76,18 +76,15 @@ jobs: CANARY: ${{ env.APK_FILE_CANARY }} COMMIT_MESSAGE: |+ **New push to github\!** - + ``` ${{ github.event.head_commit.message }} - ``` - - by ${{ github.event.head_commit.author.name }} + ```by ${{ github.event.head_commit.author.name }} See commit detail [here](${{ github.event.head_commit.url }}) - run: | mkdir -p ${{ github.workspace }}/git_clone git clone ${{ github.server_url }}/${{ github.repository }} ${{ github.workspace }}/git_clone -b ${{ github.ref_name }} cd ${{ github.workspace }}/git_clone ESCAPED=$(python3 -c 'import json,os,urllib.parse; print(urllib.parse.quote(json.dumps(os.environ["COMMIT_MESSAGE"].replace(".", r"\."))))') cd ${{ github.workspace }} - curl -v "https://api.telegram.org/bot${BOT_TOKEN}/sendMediaGroup?chat_id=${CHANNEL_ID}&media=%5B%7B%22type%22:%22document%22,%20%22media%22:%22attach://canary%22,%22parse_mode%22:%22MarkdownV2%22,%22caption%22:${ESCAPED}%7D%5D" -F canary="@${CANARY}" \ No newline at end of file + curl -v "https://api.telegram.org/bot${BOT_TOKEN}/sendMediaGroup?chat_id=${CHANNEL_ID}&media=%5B%7B%22type%22:%22document%22,%20%22media%22:%22attach://canary%22,%22parse_mode%22:%22MarkdownV2%22,%22caption%22:${ESCAPED}%7D%5D" -F canary="@${CANARY}"