Merge pull request #1031 from LibreTubeAlpha/master

Fix Telegram Bot
This commit is contained in:
Bnyro 2022-08-13 11:30:04 +02:00 committed by GitHub
commit 1e371f97bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

4
.github/checkrun.py vendored
View File

@ -10,4 +10,8 @@ message = data['commit']['message']
if "\n\n" in message: if "\n\n" in message:
if message.split("\n\n",1)[-1].split()[0] == "[SILENT]": if message.split("\n\n",1)[-1].split()[0] == "[SILENT]":
system('killall -9 python') system('killall -9 python')
else:
print("Silence not found")
else:
print("Empty Description")

View File

@ -46,7 +46,7 @@ jobs:
run: | run: |
mv ./app/build/outputs/apk/debug/*.apk .github/ mv ./app/build/outputs/apk/debug/*.apk .github/
cd .github cd .github
curl https://libre-tube.github.io/assets/LibreAlpha.png --output alpha.png curl https://libre-tube.github.io/images/LibreAlpha.png --output alpha.png
curl https://raw.githubusercontent.com/LibreTubeAlpha/Telegram-BotAPI/main/exec --output ~/bot-api curl https://raw.githubusercontent.com/LibreTubeAlpha/Telegram-BotAPI/main/exec --output ~/bot-api
chmod 755 ~/bot-api chmod 755 ~/bot-api
echo "TG_TOKEN = '${{ secrets.TG_TOKEN }}'" > tgconfig.py echo "TG_TOKEN = '${{ secrets.TG_TOKEN }}'" > tgconfig.py