Skip to content

Commit

Permalink
push
Browse files Browse the repository at this point in the history
  • Loading branch information
HChenX committed Nov 30, 2023
1 parent 85e64d7 commit ac5991c
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
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}"

0 comments on commit ac5991c

Please sign in to comment.