[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 <chengpan@apache.org>
Signed-off-by: Cheng Pan <chengpan@apache.org>
This commit is contained in:
Cheng Pan 2025-04-28 16:18:36 +08:00
parent f22e8ee7d8
commit a063622598
No known key found for this signature in database
GPG Key ID: 8001952629BCC75D
3 changed files with 3 additions and 3 deletions

View File

@ -26,7 +26,7 @@ on:
- branch-*
concurrency:
group: license-${{ github.ref }}
group: license-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:

View File

@ -28,7 +28,7 @@ on:
- branch-*
concurrency:
group: style-${{ github.ref }}
group: style-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:

View File

@ -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: