From 63432192ea4679bae75861237942d6a49e9d3eb9 Mon Sep 17 00:00:00 2001 From: Simon Date: Tue, 29 Aug 2023 11:19:48 +0700 Subject: [PATCH] limit release backup to main repo only --- tubearchivist/web/src/webhook_github.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tubearchivist/web/src/webhook_github.py b/tubearchivist/web/src/webhook_github.py index dcfd426..8899c17 100644 --- a/tubearchivist/web/src/webhook_github.py +++ b/tubearchivist/web/src/webhook_github.py @@ -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"""