Put `env` before `run` or `with` in GHA workflows (#56268)
Summary:
Addresses seemethere's [comment](https://github.com/pytorch/pytorch/pull/56071#discussion_r614469633) on https://github.com/pytorch/pytorch/issues/56071.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/56268
Test Plan: CI.
Reviewed By: seemethere, ejguan
Differential Revision: D27823149
Pulled By: samestep
fbshipit-source-id: 44d816abd85372b58c70bd81b189a0659a4079a4