You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2021/04/03 12:23:15 UTC

[incubator-nuttx-testing] 01/02: add canceling workflow

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

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-testing.git

commit 272c2a6213987c7b9ae8942d3b12db2d8c95374c
Author: Matias N <ma...@protobits.dev>
AuthorDate: Fri Apr 2 15:15:10 2021 -0300

    add canceling workflow
---
 .github/workflows/cancel.yml | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml
new file mode 100644
index 0000000..9f4e41b
--- /dev/null
+++ b/.github/workflows/cancel.yml
@@ -0,0 +1,17 @@
+name: Cancelling Duplicates
+on:
+  workflow_run:
+    workflows: ["Build", "Docker-Linux", "Lint"]
+    types: ['requested']
+
+jobs:
+  cancel-duplicate-workflow-runs:
+    name: "Cancel duplicate workflow runs"
+    runs-on: ubuntu-latest
+    steps:
+      - uses: apache/airflow-cancel-workflow-runs@master
+        name: "Cancel duplicate workflow runs"
+        with:
+          cancelMode: allDuplicates
+          token: ${{ secrets.GITHUB_TOKEN }}
+          sourceRunId: ${{ github.event.workflow_run.id }}