[ci] expand log file if failed (#85927)
as in title, expand the logs if the test file failed
ex https://github.com/pytorch/pytorch/actions/runs/3155045945/jobs/5133566508
Pull Request resolved: https://github.com/pytorch/pytorch/pull/85927
Approved by: https://github.com/huydhn, https://github.com/janeyx99