From 9bc093b6dfd9452ed246db07eaeb30909cdb50a6 Mon Sep 17 00:00:00 2001 From: Or Geva Date: Mon, 5 Sep 2022 12:19:05 +0300 Subject: [PATCH] GitHub-Actions - Add cancel-in-progress to Static Analysis --- .github/workflows/analysis.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/analysis.yml b/.github/workflows/analysis.yml index f54463cc2..c278d458c 100644 --- a/.github/workflows/analysis.yml +++ b/.github/workflows/analysis.yml @@ -1,5 +1,8 @@ name: "Static Analysis" on: [push, pull_request] +concurrency: + group: ${{ github.event.pull_request.number || github.sha }}-static-check + cancel-in-progress: true jobs: Go-Lint: if: contains(github.event.pull_request.labels.*.name, 'safe to test') || github.event_name == 'push'