ci: Specify concurrency for github workflows (#2059)

This commit is contained in:
Ayaz Salikhov
2025-04-30 11:45:56 +01:00
committed by GitHub
parent cc1da5afa9
commit f2f342f7c2
8 changed files with 39 additions and 1 deletions

View File

@@ -7,6 +7,11 @@ on:
branches: [master, release/*, develop]
workflow_dispatch:
concurrency:
# Only cancel in-progress jobs or runs for the current workflow - matches against branch & tags
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-and-test:
name: Build and Test

View File

@@ -1,4 +1,5 @@
name: Build and publish Clio docker image
on:
workflow_call:
inputs:
@@ -37,6 +38,11 @@ on:
description: Whether to strip clio binary
default: true
concurrency:
# Only cancel in-progress jobs or runs for the current workflow - matches against branch & tags
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build_and_publish_image:
name: Build and publish image

View File

@@ -4,6 +4,11 @@ on:
repository_dispatch:
types: [check_libxrpl]
concurrency:
# Only cancel in-progress jobs or runs for the current workflow - matches against branch & tags
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
CONAN_PROFILE: gcc

View File

@@ -11,6 +11,11 @@ on:
- .github/workflows/clang-tidy.yml
workflow_call:
concurrency:
# Only cancel in-progress jobs or runs for the current workflow - matches against branch & tags
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
CONAN_PROFILE: clang

View File

@@ -1,4 +1,5 @@
name: Documentation
on:
push:
branches: [develop]
@@ -10,7 +11,8 @@ permissions:
id-token: write
concurrency:
group: "pages"
# Only cancel in-progress jobs or runs for the current workflow - matches against branch & tags
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:

View File

@@ -9,6 +9,11 @@ on:
- ".github/workflows/nightly.yml"
- ".github/workflows/build_clio_docker_image.yml"
concurrency:
# Only cancel in-progress jobs or runs for the current workflow - matches against branch & tags
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-and-test:
name: Build and Test

View File

@@ -8,6 +8,11 @@ on:
paths:
- ".github/workflows/sanitizers.yml"
concurrency:
# Only cancel in-progress jobs or runs for the current workflow - matches against branch & tags
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-and-test:
name: Build and Test

View File

@@ -18,6 +18,11 @@ on:
- ".github/actions/build_docker_image/**"
workflow_dispatch:
concurrency:
# Only cancel in-progress jobs or runs for the current workflow - matches against branch & tags
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build_and_push:
name: Build and push docker image