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/12/18 13:14:31 UTC
[incubator-nuttx-apps] branch master updated: ci: Use GitHub Actions concurrency for cancelling duplicate jobs
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 82646b9 ci: Use GitHub Actions concurrency for cancelling duplicate jobs
82646b9 is described below
commit 82646b9564dedab5b5d63b49aaa1ce5cf9ffdc63
Author: Gustavo Henrique Nihei <gu...@espressif.com>
AuthorDate: Fri Dec 17 10:50:57 2021 -0300
ci: Use GitHub Actions concurrency for cancelling duplicate jobs
Signed-off-by: Gustavo Henrique Nihei <gu...@espressif.com>
---
.github/workflows/build.yml | 4 ++++
.github/workflows/cancel.yml | 17 -----------------
.github/workflows/check.yml | 4 ++++
.github/workflows/lint.yml | 4 ++++
4 files changed, 12 insertions(+), 17 deletions(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index d706121..7775dcb 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -20,6 +20,10 @@ on:
- 'releases/*'
tags:
+concurrency:
+ group: build-${{ github.event.pull_request.number || github.ref }}
+ cancel-in-progress: true
+
jobs:
Fetch-Source:
runs-on: ubuntu-latest
diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml
deleted file mode 100644
index b43f81d..0000000
--- a/.github/workflows/cancel.yml
+++ /dev/null
@@ -1,17 +0,0 @@
-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 }}
diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml
index 76020d1..4ab5c10 100644
--- a/.github/workflows/check.yml
+++ b/.github/workflows/check.yml
@@ -15,6 +15,10 @@ name: Check
on:
pull_request:
+concurrency:
+ group: check-${{ github.event.pull_request.number || github.ref }}
+ cancel-in-progress: true
+
jobs:
check:
runs-on: ubuntu-18.04
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index 9cd105e..5563af6 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -2,6 +2,10 @@ name: ❄️ Lint
on: [pull_request]
+concurrency:
+ group: lint-${{ github.event.pull_request.number || github.ref }}
+ cancel-in-progress: true
+
jobs:
yamllint:
name: 🍺 YAML