mirror of
https://github.com/tgbot-collection/ytdlbot.git
synced 2025-02-24 23:34:44 +08:00
24 lines
660 B
YAML
24 lines
660 B
YAML
|
name: Upgrade
|
||
|
on:
|
||
|
push:
|
||
|
tags:
|
||
|
- "v*"
|
||
|
|
||
|
jobs:
|
||
|
update:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- name: executing remote ssh commands using ssh key
|
||
|
uses: appleboy/ssh-action@master
|
||
|
env:
|
||
|
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
|
||
|
with:
|
||
|
envs: BOT_TOKEN
|
||
|
host: ${{ secrets.YTDL_BOT_HOST }}
|
||
|
username: root
|
||
|
key: ${{ secrets.SSH_KEY }}
|
||
|
script: |
|
||
|
make bot
|
||
|
make upgrade-all-worker
|
||
|
curl "https://api.telegram.org/bot$BOT_TOKEN/sendMessage?chat_id=260260121&text=ytdl%20upgrade%20complete!"
|
||
|
echo "YouTube Download upgrade complete!"
|