[easy] Fix upload test stats after master -> main switch (#99924)

Fixes #ISSUE_NUMBER

Pull Request resolved: https://github.com/pytorch/pytorch/pull/99924
Approved by: https://github.com/huydhn
This commit is contained in:
Catherine Lee 2023-04-24 21:19:09 +00:00 committed by PyTorch MergeBot
parent 367d3afd7c
commit 2cea2edc27

View file

@ -369,8 +369,8 @@ if __name__ == "__main__":
failed_tests_cases,
)
if args.head_branch == "master":
# For master jobs, upload everything.
if args.head_branch == "main":
# For jobs on main branch, upload everything.
upload_workflow_stats_to_s3(
args.workflow_run_id, args.workflow_run_attempt, "test_run", test_cases
)