diff --git a/.github/runOnRelease.py b/.github/runOnRelease.py index 5903919e9..e1dbdb5eb 100644 --- a/.github/runOnRelease.py +++ b/.github/runOnRelease.py @@ -1,7 +1,7 @@ from pyrogram import Client from pyrogram.types import InlineKeyboardButton, InlineKeyboardMarkup, InputMediaDocument from requests import get -from tgconfig import TG_API_HASH, TG_API_ID, TG_TOKEN +from config_file import TG_API_HASH, TG_API_ID, TG_TOKEN req = get("https://api.github.com/repos/Libre-Tube/LibreTube/releases/latest").json() diff --git a/.github/uploader.py b/.github/uploader.py index cbdcfaddf..557a72ada 100644 --- a/.github/uploader.py +++ b/.github/uploader.py @@ -26,7 +26,7 @@ with open("checksums", "w") as checksums: sha256hash = hashlib.sha256(bytes).hexdigest() checksums.write(sha256hash + " " + apk.name + "\n") -if tgconfig.GH_REPO.lower() == "libre-tube/libretube": +if config_file.GH_REPO.lower() == "libre-tube/libretube": run("git add -f *") run(f'git commit -m "{message}"') run("git push -u") diff --git a/.github/workflows/run-on-release.yml b/.github/workflows/run-on-release.yml index 2bc0bf7bc..444008750 100644 --- a/.github/workflows/run-on-release.yml +++ b/.github/workflows/run-on-release.yml @@ -15,9 +15,9 @@ jobs: - name: Upload to Telegram (@LibreTube) run: | - echo "TG_API_ID = '${{ secrets.TG_API_ID }}'" >> tgconfig.py - echo "TG_API_HASH = '${{ secrets.TG_API_HASH }}'" >> tgconfig.py - echo "TG_TOKEN = '${{ secrets.TG_TOKEN }}'" >> tgconfig.py + echo "TG_API_ID = '${{ secrets.TG_API_ID }}'" >> config_file.py + echo "TG_API_HASH = '${{ secrets.TG_API_HASH }}'" >> config_file.py + echo "TG_TOKEN = '${{ secrets.TG_TOKEN }}'" >> config_file.py pip install pyrogram TgCrypto requests mv .github/runOnRelease.py . python runOnRelease.py \ No newline at end of file