limit release backup to main repo only

This commit is contained in:
Simon 2023-08-29 11:19:48 +07:00
parent 4a3f7bee37
commit 63432192ea
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
1 changed files with 2 additions and 1 deletions

View File

@ -122,7 +122,8 @@ class GithubHook(WebhookBase):
tag_name = self.hook["release"]["tag_name"]
task = TaskHandler(self.repo_conf, tag_name=tag_name)
task.create_task("build_release")
GithubBackup(tag_name).save_tag()
if self.repo == "tubearchivist":
GithubBackup(tag_name).save_tag()
def save_hook(self):
"""save hook to disk for easy debugging"""