Skip to content

Commit

Permalink
Bug: change expected arg amount to 5
Browse files Browse the repository at this point in the history
the file name should be considered as 1 arg so
1 + 4 (based on action.yml). the arg amount should be 5
  • Loading branch information
Yanqiao4396 committed Jun 19, 2023
1 parent bd21c8d commit e9c583e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions branchwrite.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e9c583e

Please sign in to comment.