Skip to content

Commit 637b19c

Browse files
committed
Configure GitHub workflows to use concurrency cancel-in-progress for
pull requests see recommended best practices at Apache https://cwiki.apache.org/confluence/pages/viewpage.action?spaceKey=INFRA&title=GitHub+Actions+Recommended+Practices Signed-off-by: Aurélien Pupier <apupier@ibm.com>
1 parent 9636052 commit 637b19c

5 files changed

Lines changed: 18 additions & 2 deletions

File tree

.github/workflows/e2e-tests-flink-1.x.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ env:
3333
MAVEN_OPTS: -Dmaven.wagon.httpconnectionManager.ttlSeconds=30 -Dmaven.wagon.http.retryHandler.requestSentEnabled=true
3434

3535
concurrency:
36-
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.number || github.run_id }}
37-
cancel-in-progress: true
36+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
37+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
3838

3939
jobs:
4040
build_test:

.github/workflows/e2e-tests-flink-2.x-jdk11.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ env:
3232
JDK_VERSION: 11
3333
MAVEN_OPTS: -Dmaven.wagon.httpconnectionManager.ttlSeconds=30 -Dmaven.wagon.http.retryHandler.requestSentEnabled=true
3434

35+
concurrency:
36+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
37+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
38+
3539
jobs:
3640
build_test:
3741
runs-on: ubuntu-latest

.github/workflows/file-size-check.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ name: Check File Size
2121
on:
2222
pull_request:
2323

24+
concurrency:
25+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
26+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
27+
2428
jobs:
2529
check-file-size:
2630
runs-on: ubuntu-latest

.github/workflows/utitcase-flink-2.x-jdk11.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ env:
3232
JDK_VERSION: 11
3333
MAVEN_OPTS: -Dmaven.wagon.httpconnectionManager.ttlSeconds=30 -Dmaven.wagon.http.retryHandler.requestSentEnabled=true
3434

35+
concurrency:
36+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
37+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
38+
3539
jobs:
3640
build:
3741
runs-on: ubuntu-latest

.github/workflows/utitcase-jdk11.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ env:
3232
JDK_VERSION: 11
3333
MAVEN_OPTS: -Dmaven.wagon.httpconnectionManager.ttlSeconds=30 -Dmaven.wagon.http.retryHandler.requestSentEnabled=true
3434

35+
concurrency:
36+
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.number || github.run_id }}
37+
cancel-in-progress: true
38+
3539
jobs:
3640
build:
3741
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)