fix(CI): properly configure cancel duplicates (#12625)

Updating the "Cancel Duplicates" job to use our own Python script, which will try to cancel all duplicate jobs of all workflows:

For each workflow, we keep only the latest run for a given branch + event type (pull_request or push).
Older runs will be cancelled even if they are already running.
This commit is contained in:
Jesse Yang
2021-01-29 12:29:46 -08:00
committed by GitHub
parent 9b007e65c2
commit 9c5ec3d72a
4 changed files with 82 additions and 51 deletions