mirror of
https://github.com/gedoor/legado.git
synced 2024-07-06 23:47:49 +08:00
parent
bfe435aec5
commit
e61c701f6e
14
.github/workflows/test.yml
vendored
14
.github/workflows/test.yml
vendored
@ -193,9 +193,6 @@ jobs:
|
|||||||
needs: [ prepare, build ]
|
needs: [ prepare, build ]
|
||||||
if: ${{ github.event_name != 'pull_request' && needs.prepare.outputs.telegram == 'yes' }}
|
if: ${{ github.event_name != 'pull_request' && needs.prepare.outputs.telegram == 'yes' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
|
||||||
CHANNEL_ID: ${{ secrets.CHANNEL_ID }}
|
|
||||||
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/download-artifact@v4
|
- uses: actions/download-artifact@v4
|
||||||
@ -208,7 +205,10 @@ jobs:
|
|||||||
done
|
done
|
||||||
rm -rf */
|
rm -rf */
|
||||||
- name: Post to channel
|
- name: Post to channel
|
||||||
run: |
|
uses: xireiki/channel-post@v1
|
||||||
pip install pyTelegramBotAPI
|
with:
|
||||||
path="$GITHUB_WORKSPACE/apk/"
|
chat_id: ${{ secrets.CHANNEL_ID }}
|
||||||
python3 $GITHUB_WORKSPACE/.github/scripts/tg_bot.py "$BOT_TOKEN" "$CHANNEL_ID" "$path"
|
bot_token: ${{ secrets.BOT_TOKEN }}
|
||||||
|
context: "#阅读 #Legado #Beta ${{ needs.prepare.outputs.versionL }}"
|
||||||
|
path: apk/*
|
||||||
|
method: sendFile
|
Loading…
Reference in New Issue
Block a user