🎨 Handle release when project is forked.

This commit is contained in:
Nikhil Badyal
2024-04-13 00:08:43 +05:30
parent bac43d4ce7
commit b6c3d3bfd9
2 changed files with 12 additions and 8 deletions
+2
View File
@@ -123,6 +123,8 @@ class APP(object):
from src.downloader.github import Github
tag, url = Github.patch_resource(url, assets_filter, config)
if tag.startswith("tags/"):
tag = tag.split("/")[-1]
elif url.startswith("local://"):
return tag, url.split("/")[-1]
if not file_name: