fix workflow id usage in GHA (#60376)
Summary:
This fixes: https://github.com/pytorch/pytorch/issues/60139
GHA workflow ID is set to `run_id` previously and it doesn't change across re-runs
see: https://docs.github.com/en/actions/reference/environment-variables#default-environment-variables
Using GITHUB_RUN_NUMBER to report workflow ID instead.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/60376
Test Plan:
CI
see: [with rerun](https://github.com/pytorch/pytorch/actions/runs/952508536) and [without rerun](https://github.com/pytorch/pytorch/actions/runs/955665324 ) example --> they reported everything under the same run ID but in fact the first one ran twice as many test cases reported in scuba. This shouldn't occur after this PR.
Reviewed By: samestep
Differential Revision: D29267455
Pulled By: walterddr
fbshipit-source-id: 00fc6b75b84861e2f7d3e21698a5f840c3c21dcd
Author
Rong Rong (AI Infra)