mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-27 15:30:31 +05:30
Remove unsigned files if already signed files are there.
This commit is contained in:
parent
f798d66591
commit
082b1211bd
16
.github/uploader.py
vendored
16
.github/uploader.py
vendored
@ -1,9 +1,21 @@
|
|||||||
from os import system as run
|
from os import system as run, listdir, remove
|
||||||
import tgconfig
|
import tgconfig
|
||||||
|
|
||||||
|
|
||||||
|
files, signed_files, unsigned_files = listdir(), [], []
|
||||||
|
for file in files:
|
||||||
|
if file.endswith("signed.apk"):
|
||||||
|
signed_files.append(file)
|
||||||
|
elif file.endswith(".apk"):
|
||||||
|
unsigned_files.append(file)
|
||||||
|
|
||||||
|
if len(signed_files):
|
||||||
|
for file in unsigned_files:
|
||||||
|
remove(file)
|
||||||
|
|
||||||
if tgconfig.GH_REPO.lower() == "libre-tube/libretube":
|
if tgconfig.GH_REPO.lower() == "libre-tube/libretube":
|
||||||
run("git add -f *")
|
run("git add -f *")
|
||||||
run('git commit -m "WORKFLOW: ALPHA BUILDS"')
|
run('git commit -m "WORKFLOW: ALPHA BUILDS"')
|
||||||
run("git push -u")
|
run("git push -u")
|
||||||
else:
|
else:
|
||||||
print("Official Repo not Detected")
|
print("Official Repo not Detected")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user