mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-28 16:00:31 +05:30
[CI] Improve automated commit messages
This commit is contained in:
parent
c271d8304a
commit
e2044e7a48
6
.github/uploader.py
vendored
6
.github/uploader.py
vendored
@ -1,6 +1,10 @@
|
|||||||
from os import system as run, listdir, remove
|
from os import system as run, listdir, remove
|
||||||
import tgconfig
|
import tgconfig
|
||||||
|
|
||||||
|
with open("../.github/commit.json") as f:
|
||||||
|
data = load(f)
|
||||||
|
|
||||||
|
message = f"Commit {data['sha'][0:7]}, signed off by: {data['commit']['author']['name']}"
|
||||||
|
|
||||||
files, signed_files, unsigned_files = listdir(), [], []
|
files, signed_files, unsigned_files = listdir(), [], []
|
||||||
for file in files:
|
for file in files:
|
||||||
@ -15,7 +19,7 @@ if len(signed_files):
|
|||||||
|
|
||||||
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(f"git commit -m \"{message}\"")
|
||||||
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