From e9c583e955e566e3ddd1108ac814bba3c558cd2c Mon Sep 17 00:00:00 2001 From: Yanqiao4396 Date: Mon, 19 Jun 2023 17:47:26 -0400 Subject: [PATCH] Bug: change expected arg amount to 5 the file name should be considered as 1 arg so 1 + 4 (based on action.yml). the arg amount should be 5 --- branchwrite.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/branchwrite.py b/branchwrite.py index aae6087..64620db 100644 --- a/branchwrite.py +++ b/branchwrite.py @@ -82,9 +82,9 @@ def __write_content(self,content): def main(): args = sys.argv - expected_arg_amount = 4 + expected_arg_amount = 5 if len(args) != expected_arg_amount: - raise ValueError(f"4 arguments are expected, {expected_arg_amount - len(args)} from it") + raise ValueError(f"5 arguments are expected, {expected_arg_amount - len(args)} from it") branch_name = args[1] target_path = args[2] target_branch = BranchWrite(branch_name, target_path)