Add code to ensure workflow consistency for autocanceling (#55171)
Summary:
Currently, we only have three GHA workflows that need to be canceled on reruns. To anticipate for future workflows, this PR enables a check that will make sure any new workflow that should be autocanceled on reruns will be included in the cancel_redundant_workflows.yml GHA workflow.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/55171
Test Plan: Succeeded quick-checks https://github.com/pytorch/pytorch/runs/2249162035?check_suite_focus=true
Reviewed By: samestep
Differential Revision: D27514294
Pulled By: janeyx99
fbshipit-source-id: 27da321f648b97a090052823ec955caffeb6ae97