Skip to content

Commit e9c583e

Browse files
committed
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
1 parent bd21c8d commit e9c583e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

branchwrite.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ def __write_content(self,content):
8282

8383
def main():
8484
args = sys.argv
85-
expected_arg_amount = 4
85+
expected_arg_amount = 5
8686
if len(args) != expected_arg_amount:
87-
raise ValueError(f"4 arguments are expected, {expected_arg_amount - len(args)} from it")
87+
raise ValueError(f"5 arguments are expected, {expected_arg_amount - len(args)} from it")
8888
branch_name = args[1]
8989
target_path = args[2]
9090
target_branch = BranchWrite(branch_name, target_path)

0 commit comments

Comments
 (0)