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

3
.gitmodules vendored
View File

@@ -24,9 +24,6 @@
[submodule ".github/actions/file-changes-action"]
path = .github/actions/file-changes-action
url = https://github.com/trilom/file-changes-action
[submodule ".github/actions/cancel-workflow-action"]
path = .github/actions/cancel-workflow-action
url = https://github.com/styfle/cancel-workflow-action
[submodule ".github/actions/cached-dependencies"]
path = .github/actions/cached-dependencies
url = https://github.com/apache-superset/cached-dependencies