You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2020/12/27 13:52:47 UTC

[airflow-cancel-workflow-runs] 31/44: Add workflow_dispatch event to cancellable runs (#3)

This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airflow-cancel-workflow-runs.git

commit f0545153d506a7e63e2494d0113695f67f1a260e
Author: Tobiasz Kędzierski <to...@gmail.com>
AuthorDate: Sat Aug 29 13:47:05 2020 +0200

    Add workflow_dispatch event to cancellable runs (#3)
---
 dist/index.js | 2 +-
 src/main.ts   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dist/index.js b/dist/index.js
index 2a8c75f..2da1e6e 100644
--- a/dist/index.js
+++ b/dist/index.js
@@ -1466,7 +1466,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
 const github = __importStar(__webpack_require__(469));
 const core = __importStar(__webpack_require__(393));
 const treemap = __importStar(__webpack_require__(706));
-const CANCELLABLE_RUNS = ['push', 'pull_request', 'workflow_run', 'schedule'];
+const CANCELLABLE_RUNS = ['push', 'pull_request', 'workflow_run', 'schedule', 'workflow_dispatch'];
 var CancelMode;
 (function (CancelMode) {
     CancelMode["DUPLICATES"] = "duplicates";
diff --git a/src/main.ts b/src/main.ts
index 1acb58a..c4ee4da 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -3,7 +3,7 @@ import * as core from '@actions/core'
 import * as rest from '@octokit/rest'
 import * as treemap from 'jstreemap'
 
-const CANCELLABLE_RUNS = ['push', 'pull_request', 'workflow_run', 'schedule']
+const CANCELLABLE_RUNS = ['push', 'pull_request', 'workflow_run', 'schedule', 'workflow_dispatch']
 
 enum CancelMode {
   DUPLICATES = 'duplicates',