From 7915f303505144516d752b9e7ba3fe0a2fbab930 Mon Sep 17 00:00:00 2001 From: NianBroken Date: Wed, 17 Jul 2024 19:36:45 +0800 Subject: [PATCH] add --- scripts/delete_old_runs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/delete_old_runs.py b/scripts/delete_old_runs.py index 8191520..d328fcd 100644 --- a/scripts/delete_old_runs.py +++ b/scripts/delete_old_runs.py @@ -58,7 +58,7 @@ class GitHubActionsManager: if __name__ == "__main__": repository_name = os.environ.get("REPOSITORY_NAME") github_token = os.environ.get("GITHUB_TOKEN") - hour_count = os.environ.get("HOUR_COUNT") + hour_count = int(os.environ.get("HOUR_COUNT")) repo_url = f"https://api.github.com/repos/{repository_name}" # GitHub仓库URL token = f"{github_token}" # GitHub个人访问令牌