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

lhotari pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git


The following commit(s) were added to refs/heads/main by this push:
     new 3d566c8cc962 Fix problem where concurrent builds fail. Cancel the 
ongoing build when there's a newer change.
3d566c8cc962 is described below

commit 3d566c8cc96255667db22ebc002758d5af2bc38e
Author: Lari Hotari <[email protected]>
AuthorDate: Tue Mar 19 17:59:24 2024 +0200

    Fix problem where concurrent builds fail. Cancel the ongoing build when 
there's a newer change.
---
 .github/workflows/ci-build-site.yml | 4 ++++
 .github/workflows/ci-dummy-sync.yml | 4 ++++
 .github/workflows/ci-precommit.yml  | 4 ++++
 3 files changed, 12 insertions(+)

diff --git a/.github/workflows/ci-build-site.yml 
b/.github/workflows/ci-build-site.yml
index 972662173edf..4c6c97592613 100644
--- a/.github/workflows/ci-build-site.yml
+++ b/.github/workflows/ci-build-site.yml
@@ -21,6 +21,10 @@ on:
     branches: [main]
   workflow_dispatch:
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
+  cancel-in-progress: true
+
 jobs:
   build-website:
     if: ${{ github.repository == 'apache/pulsar-site' }}
diff --git a/.github/workflows/ci-dummy-sync.yml 
b/.github/workflows/ci-dummy-sync.yml
index 568d375e0f4f..b0aabe8c93a1 100644
--- a/.github/workflows/ci-dummy-sync.yml
+++ b/.github/workflows/ci-dummy-sync.yml
@@ -24,6 +24,10 @@ on:
       - '.github/workflows/ci-dummy-sync.yml'
       - 'tools/pytools/**'
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
+  cancel-in-progress: true
+
 jobs:
   sync-without-push:
     name: Check synchronize content
diff --git a/.github/workflows/ci-precommit.yml 
b/.github/workflows/ci-precommit.yml
index fffd3d9010a8..e0fbce58f744 100644
--- a/.github/workflows/ci-precommit.yml
+++ b/.github/workflows/ci-precommit.yml
@@ -20,6 +20,10 @@ on:
   pull_request:
     branches: [main]
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
+  cancel-in-progress: true
+
 jobs:
   check:
     name: Check

Reply via email to