-
-
Notifications
You must be signed in to change notification settings - Fork 602
26 lines (25 loc) · 752 Bytes
/
upgrade.yml
File metadata and controls
26 lines (25 loc) · 752 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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: |
docker save bennythink/ytdlbot > ~/ytdlbot-old.tar
cd /home/ytdlbot
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!"