skip empty build_release, add jf-plugin repo for hooks

This commit is contained in:
Simon 2024-04-19 18:57:11 +02:00
parent 8296f8dfa2
commit f61affb033
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
2 changed files with 9 additions and 0 deletions

View File

@ -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",

View File

@ -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":