Skip to content

Commit

Permalink
fix(build): update patch version and correct curl command in publish.yml
Browse files Browse the repository at this point in the history
Updated patchVersion in gradle.properties from 12 to 13. Corrected the curl command in publish.yml to use APK_NAME instead of MARKET_FILE for sending media group to Telegram.

# GENERATE BY https://aicommit.app
  • Loading branch information
rosuH committed Sep 10, 2024
1 parent 371fae5 commit 0648f75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ jobs:
env:
CHANNEL_ID: ${{ secrets.TELEGRAM_TO }}
BOT_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}
MARKET_FILE: ${{ steps.apk-path.outputs.APK_NAME }}
COMMIT_MESSAGE: |+
新版本已发布 🎉
```
Expand All @@ -57,7 +56,7 @@ jobs:
更多提交细节:(${{ github.event.head_commit.url }})
run: |
ESCAPED=`python3 -c 'import json,os,urllib.parse; print(urllib.parse.quote(json.dumps(os.environ["COMMIT_MESSAGE"])))'`
curl -v "https://api.telegram.org/bot${BOT_TOKEN}/sendMediaGroup?chat_id=${CHANNEL_ID}&media=%5B%7B%22type%22%3A%22document%22%2C%20%22media%22%3A%22attach%3A%2F%2FmarketRelease%22%2C%22parse_mode%22%3A%22MarkdownV2%22%2C%22caption%22:${ESCAPED}%7D%5D" -F marketRelease="@$MARKET_FILE"
curl -v "https://api.telegram.org/bot${BOT_TOKEN}/sendMediaGroup?chat_id=${CHANNEL_ID}&media=%5B%7B%22type%22%3A%22document%22%2C%20%22media%22%3A%22attach%3A%2F%2FmarketRelease%22%2C%22parse_mode%22%3A%22MarkdownV2%22%2C%22caption%22:${ESCAPED}%7D%5D" -F marketRelease="@APK_NAME"
# - name: Upload Android Release to Play Store
# uses: r0adkll/upload-google-play@v1.1.3
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ android.nonTransitiveRClass=true

majorVersion=0
minorVersion=0
patchVersion=12
patchVersion=13

0 comments on commit 0648f75

Please sign in to comment.