Reland D29943356: .github: Migrate ecr_gc to github actions (#62438)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/62438
Switches out BASH_ENV for GITHUB_ENV
This reverts commit 1f1d01df3ec06046880d0a92b930fbd051d60606.
Signed-off-by: Eli Uriegas <eliuriegas@fb.com>
Test Plan: Imported from OSS
Reviewed By: heitorschueroff
Differential Revision: D29999785
Pulled By: seemethere
fbshipit-source-id: bb92850765518005a3f530264643959e5038e681