Fix update_s3_html for nightly jobs (#40338)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/40337.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/40338
Differential Revision: D22152913
Pulled By: seemethere
fbshipit-source-id: bb76c726820efc7d0127201c4bd072bba95783c5