Skip to content

Commit 0531d05

Browse files
authored
Update PR actions to cancel when updated (#1741)
1 parent 70e760e commit 0531d05

8 files changed

+35
-0
lines changed

.github/workflows/continuous-integration.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
pull_request:
77
branches: [ main ]
88

9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
11+
cancel-in-progress: true
12+
913
jobs:
1014
unit-tests:
1115
name: Unit tests

.github/workflows/e2e.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
pull_request:
77
branches: [ main ]
88

9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
11+
cancel-in-progress: true
12+
913
jobs:
1014
e2e-tests:
1115
name: End-to-end tests

.github/workflows/publish-autoinstrumentation-apache-httpd.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ on:
1313
- '.github/workflows/publish-autoinstrumentation-apache-httpd.yaml'
1414
workflow_dispatch:
1515

16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
18+
cancel-in-progress: true
19+
1620
jobs:
1721
publish:
1822
runs-on: ubuntu-20.04

.github/workflows/publish-autoinstrumentation-dotnet.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ on:
1313
- '.github/workflows/publish-autoinstrumentation-dotnet.yaml'
1414
workflow_dispatch:
1515

16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
18+
cancel-in-progress: true
19+
1620
jobs:
1721
publish:
1822
runs-on: ubuntu-20.04

.github/workflows/publish-autoinstrumentation-java.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ on:
1313
- '.github/workflows/publish-autoinstrumentation-java.yaml'
1414
workflow_dispatch:
1515

16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
18+
cancel-in-progress: true
19+
20+
1621
jobs:
1722
publish:
1823
runs-on: ubuntu-20.04

.github/workflows/publish-autoinstrumentation-nodejs.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ on:
1313
- '.github/workflows/publish-autoinstrumentation-nodejs.yaml'
1414
workflow_dispatch:
1515

16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
18+
cancel-in-progress: true
19+
20+
1621
jobs:
1722
publish:
1823
runs-on: ubuntu-20.04

.github/workflows/publish-autoinstrumentation-python.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ on:
1313
- '.github/workflows/publish-autoinstrumentation-python.yaml'
1414
workflow_dispatch:
1515

16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
18+
cancel-in-progress: true
19+
20+
1621
jobs:
1722
publish:
1823
runs-on: ubuntu-20.04

.github/workflows/scorecard.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
pull_request:
77
branches: [ main ]
88

9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
11+
cancel-in-progress: true
12+
913
jobs:
1014
scorecard-tests:
1115
name: test on k8s

0 commit comments

Comments
 (0)