Skip to content

Commit 5d4c5b7

Browse files
authored
fix(ci): workflow mutli call concurrency (#6417)
fix: workflow mutli call concurrency
1 parent 52e42dc commit 5d4c5b7

14 files changed

+28
-14
lines changed

.github/workflows/check-coverage.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ on:
1717
- "**/*.yaml"
1818
- "CHANGELOG/**"
1919

20+
# Avoid using ${{ github.workflow }} - when called via workflow_call, it inherits the caller's name causing conflicts
2021
concurrency:
21-
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
22+
group: check-coverage-${{ github.head_ref || github.run_id }}
2223
cancel-in-progress: true
2324

2425
env:

.github/workflows/check-license.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ on:
1717
- "**/*.yaml"
1818
- "CHANGELOG/**"
1919

20+
# Avoid using ${{ github.workflow }} - when called via workflow_call, it inherits the caller's name causing conflicts
2021
concurrency:
21-
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
22+
group: check-license-${{ github.head_ref || github.run_id }}
2223
cancel-in-progress: true
2324

2425
env:

.github/workflows/check-semgrep.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ on:
1818
- "**/*.yaml"
1919
- "CHANGELOG/**"
2020

21+
# Avoid using ${{ github.workflow }} - when called via workflow_call, it inherits the caller's name causing conflicts
2122
concurrency:
22-
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
23+
group: check-semgrep-${{ github.head_ref || github.run_id }}
2324
cancel-in-progress: true
2425

2526
jobs:

.github/workflows/ci-patch-image.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@ on:
3737
- "webhooks/**"
3838
- "frontend/**"
3939

40+
# Avoid using ${{ github.workflow }} - when called via workflow_call, it inherits the caller's name causing conflicts
4041
concurrency:
41-
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
42+
group: ci-patch-image-${{ github.head_ref || github.run_id }}
4243
cancel-in-progress: true
4344

4445
jobs:

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ on:
3535
- "webhooks/**"
3636
- "frontend/**"
3737

38+
# Avoid using ${{ github.workflow }} - when called via workflow_call, it inherits the caller's name causing conflicts
3839
concurrency:
39-
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
40+
group: ci-${{ github.head_ref || github.run_id }}
4041
cancel-in-progress: true
4142

4243
jobs:

.github/workflows/cloud.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,9 @@ permissions:
5454
contents: read
5555
packages: write
5656

57+
# Avoid using ${{ github.workflow }} - when called via workflow_call, it inherits the caller's name causing conflicts
5758
concurrency:
58-
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
59+
group: cloud-${{ github.head_ref || github.run_id }}
5960
cancel-in-progress: true
6061

6162
env:

.github/workflows/controllers.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,9 @@ permissions:
6868
contents: read
6969
packages: write
7070

71+
# Avoid using ${{ github.workflow }} - when called via workflow_call, it inherits the caller's name causing conflicts
7172
concurrency:
72-
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
73+
group: controllers-${{ github.head_ref || github.run_id }}
7374
cancel-in-progress: true
7475

7576
jobs:

.github/workflows/e2e_test_core.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ on:
1717
- "lifecycle/pkg/**"
1818
- "lifecycle/test/**"
1919

20+
# Avoid using ${{ github.workflow }} - when called via workflow_call, it inherits the caller's name causing conflicts
2021
concurrency:
21-
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
22+
group: e2e-test-core-${{ github.head_ref || github.run_id }}
2223
cancel-in-progress: true
2324

2425
jobs:

.github/workflows/e2e_test_core_k3s.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ on:
1717
- "lifecycle/pkg/**"
1818
- "lifecycle/test/**"
1919

20+
# Avoid using ${{ github.workflow }} - when called via workflow_call, it inherits the caller's name causing conflicts
2021
concurrency:
21-
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
22+
group: e2e-test-core-k3s-${{ github.head_ref || github.run_id }}
2223
cancel-in-progress: true
2324

2425
jobs:

.github/workflows/e2e_test_image_cri_shim.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ on:
1717
- "lifecycle/staging/src/github.com/image-cri-shim/**"
1818
- "lifecycle/test/**"
1919

20+
# Avoid using ${{ github.workflow }} - when called via workflow_call, it inherits the caller's name causing conflicts
2021
concurrency:
21-
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
22+
group: e2e-test-image-cri-shim-${{ github.head_ref || github.run_id }}
2223
cancel-in-progress: true
2324

2425
jobs:

0 commit comments

Comments
 (0)