mirror of
https://github.com/apache/nuttx.git
synced 2025-12-12 22:05:54 +08:00
ci: Use GitHub Actions concurrency for cancelling duplicate jobs
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
This commit is contained in:
committed by
Xiang Xiao
parent
07d295b8db
commit
3eec9fcb9b
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@@ -24,6 +24,10 @@ on:
|
|||||||
- 'releases/*'
|
- 'releases/*'
|
||||||
tags:
|
tags:
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: build-${{ github.event.pull_request.number || github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Fetch-Source:
|
Fetch-Source:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
17
.github/workflows/cancel.yml
vendored
17
.github/workflows/cancel.yml
vendored
@@ -1,17 +0,0 @@
|
|||||||
name: Cancelling Duplicates
|
|
||||||
on:
|
|
||||||
workflow_run:
|
|
||||||
workflows: ["Build", "Check", "Build Documentation", " Lint", "Docker-Linux"]
|
|
||||||
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 }}
|
|
||||||
4
.github/workflows/check.yml
vendored
4
.github/workflows/check.yml
vendored
@@ -17,6 +17,10 @@ on:
|
|||||||
paths-ignore:
|
paths-ignore:
|
||||||
- 'Documentation/**'
|
- 'Documentation/**'
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: check-${{ github.event.pull_request.number || github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check:
|
check:
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
|
|||||||
4
.github/workflows/doc.yml
vendored
4
.github/workflows/doc.yml
vendored
@@ -15,6 +15,10 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
push:
|
push:
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: docs-${{ github.event.pull_request.number || github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-html:
|
build-html:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
4
.github/workflows/docker_linux.yml
vendored
4
.github/workflows/docker_linux.yml
vendored
@@ -30,6 +30,10 @@ on:
|
|||||||
env:
|
env:
|
||||||
IMAGE_NAME: apache-nuttx-ci-linux
|
IMAGE_NAME: apache-nuttx-ci-linux
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: docker-${{ github.event.pull_request.number || github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# Push image to GitHub Packages.
|
# Push image to GitHub Packages.
|
||||||
push:
|
push:
|
||||||
|
|||||||
4
.github/workflows/lint.yml
vendored
4
.github/workflows/lint.yml
vendored
@@ -2,6 +2,10 @@ name: Lint
|
|||||||
|
|
||||||
on: [pull_request]
|
on: [pull_request]
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: lint-${{ github.event.pull_request.number || github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
name: Lint
|
name: Lint
|
||||||
|
|||||||
Reference in New Issue
Block a user