From e61c701f6eabc07f46aa5e1797fdeb0ddafbd25d Mon Sep 17 00:00:00 2001 From: miaogongzi <69211489+mgz0227@users.noreply.github.com> Date: Thu, 14 Mar 2024 20:09:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96tg=E6=8E=A8=E9=80=81=20(#3792?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 优化tg推送 * fix * 调整输出 --- .github/workflows/test.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8ef99b97c..e6068317c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -193,9 +193,6 @@ jobs: needs: [ prepare, build ] if: ${{ github.event_name != 'pull_request' && needs.prepare.outputs.telegram == 'yes' }} runs-on: ubuntu-latest - env: - CHANNEL_ID: ${{ secrets.CHANNEL_ID }} - BOT_TOKEN: ${{ secrets.BOT_TOKEN }} steps: - uses: actions/checkout@v4 - uses: actions/download-artifact@v4 @@ -208,7 +205,10 @@ jobs: done rm -rf */ - name: Post to channel - run: | - pip install pyTelegramBotAPI - path="$GITHUB_WORKSPACE/apk/" - python3 $GITHUB_WORKSPACE/.github/scripts/tg_bot.py "$BOT_TOKEN" "$CHANNEL_ID" "$path" + uses: xireiki/channel-post@v1 + with: + chat_id: ${{ secrets.CHANNEL_ID }} + bot_token: ${{ secrets.BOT_TOKEN }} + context: "#阅读 #Legado #Beta ${{ needs.prepare.outputs.versionL }}" + path: apk/* + method: sendFile \ No newline at end of file