This is an automated email from the ASF dual-hosted git repository.
chengpan pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/celeborn.git
The following commit(s) were added to refs/heads/main by this push:
new a06362259 [MINOR][INFRA] Do not cancel GHA jobs on committing to
main/branch-* branches
a06362259 is described below
commit a0636225980d6c4eee4cf46c4bb770b9d0261d27
Author: Cheng Pan <[email protected]>
AuthorDate: Mon Apr 28 16:18:36 2025 +0800
[MINOR][INFRA] Do not cancel GHA jobs on committing to main/branch-*
branches
### What changes were proposed in this pull request?
As the title.
### Why are the changes needed?
To avoid canceling GHA jobs after quickly merging more than one PRs in a
short time.
<img width="867" alt="image"
src="https://github.com/user-attachments/assets/fe34ee02-3dd5-4b10-89f2-3826031d1bf4"
/>
### Does this PR introduce _any_ user-facing change?
No, dev-only.
### How was this patch tested?
Monitor after merging.
Closes #3235 from pan3793/minor-cancel-ci.
Authored-by: Cheng Pan <[email protected]>
Signed-off-by: Cheng Pan <[email protected]>
---
.github/workflows/license.yml | 2 +-
.github/workflows/style.yml | 2 +-
.github/workflows/web_lint.yml | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/license.yml b/.github/workflows/license.yml
index 31df8ea5f..d9821cfe0 100644
--- a/.github/workflows/license.yml
+++ b/.github/workflows/license.yml
@@ -26,7 +26,7 @@ on:
- branch-*
concurrency:
- group: license-${{ github.ref }}
+ group: license-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
diff --git a/.github/workflows/style.yml b/.github/workflows/style.yml
index 87a2f7508..779bf5f9f 100644
--- a/.github/workflows/style.yml
+++ b/.github/workflows/style.yml
@@ -28,7 +28,7 @@ on:
- branch-*
concurrency:
- group: style-${{ github.ref }}
+ group: style-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
diff --git a/.github/workflows/web_lint.yml b/.github/workflows/web_lint.yml
index b57715ec3..32d16a868 100644
--- a/.github/workflows/web_lint.yml
+++ b/.github/workflows/web_lint.yml
@@ -28,7 +28,7 @@ on:
- branch-*
concurrency:
- group: style-web-${{ github.ref }}
+ group: style-web-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs: