Skip to content

Commit a9f6aea

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 5e0ee1c commit a9f6aea

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ on:
3232
env:
3333
MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3
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
docker-build:
3741
runs-on: ubuntu-22.04

0 commit comments

Comments
 (0)