Skip to content

Commit

Permalink
fix argument count check
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelgruetter committed Jan 9, 2023
1 parent 2a1807a commit b9d495e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions check_ci_success.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ def test_act_on():
act_on(check_run)

if __name__ == "__main__":
if len(sys.argv) != 5:
print("Error: Expecting exactly four arguments: repo owner, repo name, branch name, check name")
if len(sys.argv) != 6:
print("Error: Expecting exactly five arguments: repo owner, repo name, branch name, check name, and GitHub token")
sys.exit(1)
repo_owner = sys.argv[1]
repo_name = sys.argv[2]
Expand Down

0 comments on commit b9d495e

Please sign in to comment.