Migrate last workflows from 18.04 to 22.04 (#83861)
18.04 is getting deprecated in december--let's migrate them off now.
This PR does NOT touch functorch nor third_party workflows.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/83861
Approved by: https://github.com/kit1980, https://github.com/malfet, https://github.com/seemethere