From 41231dd49b84580f397f238e978fad97b1bff220 Mon Sep 17 00:00:00 2001 From: Samat Tamerlan Date: Wed, 18 Sep 2024 14:28:25 +0200 Subject: [PATCH 1/2] stop previous task when new was pushed --- .github/workflows/test.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 00e8ffca07..6f069ac172 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,6 +5,10 @@ on: [push, pull_request] permissions: read-all +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: # Note: UI related linter tests will run in the gui job. lint: From d8e0882f8df067ecf395cfeee8d6f14fb21508ae Mon Sep 17 00:00:00 2001 From: Samat Tamerlan Date: Wed, 18 Sep 2024 23:53:27 +0200 Subject: [PATCH 2/2] removal of unnecessary part --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6f069ac172..860dc1b530 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,7 +6,7 @@ on: [push, pull_request] permissions: read-all concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true jobs: