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/01 02:25:19 UTC

[incubator-nuttx-apps] branch master updated: CI: cancel redundant workflows

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-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new b9042a3  CI: cancel redundant workflows
b9042a3 is described below

commit b9042a36664b1baff90d7bacedf166f1ce3d628a
Author: Matias N <ma...@protobits.dev>
AuthorDate: Wed Mar 31 14:26:39 2021 -0300

    CI: cancel redundant workflows
---
 .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..b43f81d
--- /dev/null
+++ b/.github/workflows/cancel.yml
@@ -0,0 +1,17 @@
+name: Cancelling Duplicates
+on:
+  workflow_run:
+    workflows: ["Build", "Check", "❄️ 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 }}