mirror of
https://github.com/tubearchivist/tubearchivist-server.git
synced 2024-09-07 18:28:46 +00:00
skip empty build_release, add jf-plugin repo for hooks
This commit is contained in:
parent
8296f8dfa2
commit
f61affb033
|
@ -58,6 +58,10 @@ class WebhookBase:
|
|||
],
|
||||
"discord_release_hook": environ.get("GITHUB_RELEASE_HOOK_URL"),
|
||||
},
|
||||
"tubearchivist-jf-plugin": {
|
||||
"gh_user": "tubearchivist",
|
||||
"gh_repo": "tubearchivist-jf-plugin",
|
||||
},
|
||||
"members": {
|
||||
"gh_user": "tubearchivist",
|
||||
"gh_repo": "members",
|
||||
|
|
|
@ -20,6 +20,7 @@ HOOK_URL = {
|
|||
"tubearchivist/tubearchivist": environ.get("GITHUB_TA_HOOK_URL"),
|
||||
"tubearchivist/docs": environ.get("GITHUB_DOCS_URL"),
|
||||
"tubearchivist/tubearchivist-jf": environ.get("GITHUB_JF_URL"),
|
||||
"tubearchivist/tubearchivist-jf-plugin": environ.get("GITHUB_JF_URL"),
|
||||
"tubearchivist/tubearchivist-plex": environ.get("GITHUB_PLEX_URL"),
|
||||
}
|
||||
|
||||
|
@ -123,6 +124,10 @@ class GithubHook(WebhookBase):
|
|||
return
|
||||
|
||||
tag_name = self.hook["release"]["tag_name"]
|
||||
if "build_release" not in self.repo_conf:
|
||||
print("no build_release command")
|
||||
return
|
||||
|
||||
task = TaskHandler(self.repo_conf, tag_name=tag_name)
|
||||
task.create_task("build_release")
|
||||
if self.repo == "tubearchivist":
|
||||
|
|
Loading…
Reference in New Issue
Block a user