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

mgrigorov pushed a commit to branch branch-1.11
in repository https://gitbox.apache.org/repos/asf/avro.git


The following commit(s) were added to refs/heads/branch-1.11 by this push:
     new 307adc0  AVRO-3431: CI: Cancel in-progress workflows if there are new 
commits in PR (#1577)
307adc0 is described below

commit 307adc0c3acc600205c2777ac71bdc9cafabc523
Author: Martin Grigorov <[email protected]>
AuthorDate: Thu Mar 3 16:25:08 2022 +0200

    AVRO-3431: CI: Cancel in-progress workflows if there are new commits in PR 
(#1577)
    
    (cherry picked from commit bdbb2a0379104cba9cf73a6df682c66c9e8180a4)
    Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
---
 .github/workflows/codeql-csharp-analysis.yml | 4 ++++
 .github/workflows/codeql-java-analysis.yml   | 4 ++++
 .github/workflows/codeql-js-analysis.yml     | 4 ++++
 .github/workflows/codeql-py-analysis.yml     | 4 ++++
 .github/workflows/rat.yml                    | 4 ++++
 .github/workflows/spotless.yml               | 4 ++++
 .github/workflows/test-lang-c++.yml          | 4 ++++
 .github/workflows/test-lang-c.yml            | 4 ++++
 .github/workflows/test-lang-csharp.yml       | 4 ++++
 .github/workflows/test-lang-java.yml         | 4 ++++
 .github/workflows/test-lang-js.yml           | 4 ++++
 .github/workflows/test-lang-perl.yml         | 4 ++++
 .github/workflows/test-lang-php.yml          | 4 ++++
 .github/workflows/test-lang-py.yml           | 4 ++++
 .github/workflows/test-lang-ruby.yml         | 4 ++++
 .github/workflows/test-lang-rust-audit.yml   | 4 ++++
 .github/workflows/test-lang-rust-ci.yml      | 4 ++++
 .github/workflows/test-lang-rust-clippy.yml  | 4 ++++
 .github/workflows/test-lang-rust-miri.yml    | 4 ++++
 19 files changed, 76 insertions(+)

diff --git a/.github/workflows/codeql-csharp-analysis.yml 
b/.github/workflows/codeql-csharp-analysis.yml
index f76d392..48af1be 100644
--- a/.github/workflows/codeql-csharp-analysis.yml
+++ b/.github/workflows/codeql-csharp-analysis.yml
@@ -32,6 +32,10 @@ on:
     - .github/workflows/codeql-csharp-analysis.yml
     - lang/csharp/**
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: true
+
 jobs:
   analyze:
     name: Analyze
diff --git a/.github/workflows/codeql-java-analysis.yml 
b/.github/workflows/codeql-java-analysis.yml
index 1b4933f..c42c627 100644
--- a/.github/workflows/codeql-java-analysis.yml
+++ b/.github/workflows/codeql-java-analysis.yml
@@ -32,6 +32,10 @@ on:
     - lang/java/**
     - pom.xml
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: true
+
 jobs:
   analyze:
     name: Analyze
diff --git a/.github/workflows/codeql-js-analysis.yml 
b/.github/workflows/codeql-js-analysis.yml
index 58d2a0a..21af544 100644
--- a/.github/workflows/codeql-js-analysis.yml
+++ b/.github/workflows/codeql-js-analysis.yml
@@ -32,6 +32,10 @@ on:
     - .github/workflows/codeql-js-analysis.yml
     - lang/js/**
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: true
+
 jobs:
   analyze:
     name: Analyze
diff --git a/.github/workflows/codeql-py-analysis.yml 
b/.github/workflows/codeql-py-analysis.yml
index 048b2ed..95f986a 100644
--- a/.github/workflows/codeql-py-analysis.yml
+++ b/.github/workflows/codeql-py-analysis.yml
@@ -32,6 +32,10 @@ on:
     - .github/workflows/codeql-py-analysis.yml
     - lang/py/**
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: true
+
 jobs:
   analyze:
     name: Analyze
diff --git a/.github/workflows/rat.yml b/.github/workflows/rat.yml
index d3fa186..97c59e8 100644
--- a/.github/workflows/rat.yml
+++ b/.github/workflows/rat.yml
@@ -21,6 +21,10 @@ on:
   pull_request:
     branches: [ master ]
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: true
+
 jobs:
   rat:
     runs-on: ubuntu-latest
diff --git a/.github/workflows/spotless.yml b/.github/workflows/spotless.yml
index 45c7e9d..37b40e9 100644
--- a/.github/workflows/spotless.yml
+++ b/.github/workflows/spotless.yml
@@ -24,6 +24,10 @@ on:
     - .github/workflows/spotless.yml
     - lang/java/**
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: true
+
 jobs:
   spotless:
     runs-on: ubuntu-latest
diff --git a/.github/workflows/test-lang-c++.yml 
b/.github/workflows/test-lang-c++.yml
index c7db380..9c1c2e5 100644
--- a/.github/workflows/test-lang-c++.yml
+++ b/.github/workflows/test-lang-c++.yml
@@ -28,6 +28,10 @@ defaults:
   run:
     working-directory: lang/c++
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: true
+
 jobs:
   test:
     runs-on: ubuntu-latest
diff --git a/.github/workflows/test-lang-c.yml 
b/.github/workflows/test-lang-c.yml
index 764a293..614728e 100644
--- a/.github/workflows/test-lang-c.yml
+++ b/.github/workflows/test-lang-c.yml
@@ -28,6 +28,10 @@ defaults:
   run:
     working-directory: lang/c
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: true
+
 jobs:
   test:
     runs-on: ubuntu-latest
diff --git a/.github/workflows/test-lang-csharp.yml 
b/.github/workflows/test-lang-csharp.yml
index 29c812e..0492335 100644
--- a/.github/workflows/test-lang-csharp.yml
+++ b/.github/workflows/test-lang-csharp.yml
@@ -28,6 +28,10 @@ defaults:
   run:
     working-directory: lang/csharp
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: true
+
 jobs:
   test:
     runs-on: ubuntu-latest
diff --git a/.github/workflows/test-lang-java.yml 
b/.github/workflows/test-lang-java.yml
index 0daa77c..ef384a6 100644
--- a/.github/workflows/test-lang-java.yml
+++ b/.github/workflows/test-lang-java.yml
@@ -29,6 +29,10 @@ defaults:
   run:
     working-directory: lang/java
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: true
+
 jobs:
   test:
     name: Java ${{ matrix.java }} Test
diff --git a/.github/workflows/test-lang-js.yml 
b/.github/workflows/test-lang-js.yml
index ed88332..5efb677 100644
--- a/.github/workflows/test-lang-js.yml
+++ b/.github/workflows/test-lang-js.yml
@@ -28,6 +28,10 @@ defaults:
   run:
     working-directory: lang/js
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: true
+
 jobs:
   test:
     name: Node ${{ matrix.node }}
diff --git a/.github/workflows/test-lang-perl.yml 
b/.github/workflows/test-lang-perl.yml
index a73533c..f524334 100644
--- a/.github/workflows/test-lang-perl.yml
+++ b/.github/workflows/test-lang-perl.yml
@@ -28,6 +28,10 @@ defaults:
   run:
     working-directory: lang/perl
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: true
+
 jobs:
   test:
     name: Perl ${{ matrix.perl }} Tests
diff --git a/.github/workflows/test-lang-php.yml 
b/.github/workflows/test-lang-php.yml
index 1fc227f..15c1ee7 100644
--- a/.github/workflows/test-lang-php.yml
+++ b/.github/workflows/test-lang-php.yml
@@ -28,6 +28,10 @@ defaults:
   run:
     working-directory: lang/php
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: true
+
 jobs:
   test:
     name: PHP ${{ matrix.php }} Test
diff --git a/.github/workflows/test-lang-py.yml 
b/.github/workflows/test-lang-py.yml
index b8f9800..01fe90a 100644
--- a/.github/workflows/test-lang-py.yml
+++ b/.github/workflows/test-lang-py.yml
@@ -28,6 +28,10 @@ defaults:
   run:
     working-directory: lang/py
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: true
+
 jobs:
   test:
     name: Python ${{ matrix.python }} Tests
diff --git a/.github/workflows/test-lang-ruby.yml 
b/.github/workflows/test-lang-ruby.yml
index e7b59e0..b846781 100644
--- a/.github/workflows/test-lang-ruby.yml
+++ b/.github/workflows/test-lang-ruby.yml
@@ -28,6 +28,10 @@ defaults:
   run:
     working-directory: lang/ruby
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: true
+
 jobs:
   test:
     name: Ruby ${{ matrix.ruby }} Tests
diff --git a/.github/workflows/test-lang-rust-audit.yml 
b/.github/workflows/test-lang-rust-audit.yml
index efb3f1e..b25ddc5 100644
--- a/.github/workflows/test-lang-rust-audit.yml
+++ b/.github/workflows/test-lang-rust-audit.yml
@@ -31,6 +31,10 @@ defaults:
   run:
     working-directory: lang/rust
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: true
+
 jobs:
   audit:
     runs-on: ubuntu-latest
diff --git a/.github/workflows/test-lang-rust-ci.yml 
b/.github/workflows/test-lang-rust-ci.yml
index 91364f9..e89f4ca 100644
--- a/.github/workflows/test-lang-rust-ci.yml
+++ b/.github/workflows/test-lang-rust-ci.yml
@@ -30,6 +30,10 @@ defaults:
   run:
     working-directory: lang/rust
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: true
+
 jobs:
   ci:
     runs-on: ubuntu-latest
diff --git a/.github/workflows/test-lang-rust-clippy.yml 
b/.github/workflows/test-lang-rust-clippy.yml
index cedc5f5..c5bc52a 100644
--- a/.github/workflows/test-lang-rust-clippy.yml
+++ b/.github/workflows/test-lang-rust-clippy.yml
@@ -30,6 +30,10 @@ defaults:
   run:
     working-directory: lang/rust
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: true
+
 jobs:
   clippy_check:
     runs-on: ubuntu-latest
diff --git a/.github/workflows/test-lang-rust-miri.yml 
b/.github/workflows/test-lang-rust-miri.yml
index a29f192..a310d2d 100644
--- a/.github/workflows/test-lang-rust-miri.yml
+++ b/.github/workflows/test-lang-rust-miri.yml
@@ -30,6 +30,10 @@ defaults:
   run:
     working-directory: lang/rust
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: true
+
 jobs:
   miri_check:
     runs-on: ubuntu-latest

Reply via email to