add server method send_today_lessons_to_chat
This commit is contained in:
+4
-1
@@ -33,6 +33,8 @@ steps:
|
||||
from_secret: bot_token
|
||||
TOKEN_WEATHER:
|
||||
from_secret: bot_token_weather
|
||||
CHAT_ID:
|
||||
from_secret: bot_chat_id
|
||||
PASSWORD:
|
||||
from_secret: ssh_pass
|
||||
settings:
|
||||
@@ -44,12 +46,13 @@ steps:
|
||||
from_secret: ssh_pass
|
||||
port:
|
||||
from_secret: ssh_port
|
||||
envs: [ TOKEN,TOKEN_WEATHER,PASSWORD ]
|
||||
envs: [ TOKEN,TOKEN_WEATHER,CHAT_ID,PASSWORD ]
|
||||
command_timeout: 10s
|
||||
script:
|
||||
- cd bots/verochka_tg_bot
|
||||
- echo $${TOKEN} > token.txt
|
||||
- echo $${TOKEN_WEATHER} > token_weather.txt
|
||||
- echo $${CHAT_ID} > token_weather.txt
|
||||
- echo $${PASSWORD} | sudo -S systemctl restart verochka_tg_bot
|
||||
|
||||
trigger:
|
||||
|
||||
Reference in New Issue
Block a user