From 52688d849b346c70fd0c9d0671bae8071d4bc0d0 Mon Sep 17 00:00:00 2001 From: Kentaro Hayashi Date: Fri, 29 Nov 2024 15:55:04 +0900 Subject: [PATCH] ci: enable cancel-in-progress to reduce needless actions (#404) Signed-off-by: Kentaro Hayashi --- .github/workflows/linux.yml | 5 +++++ .github/workflows/windows.yml | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 0c58ce9d..c1090c16 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -2,6 +2,11 @@ name: Linux on: push: pull_request: + +concurrency: + group: ${{ github.head_ref || github.sha }}-${{ github.workflow }} + cancel-in-progress: true + jobs: build: name: Build & Test diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 86344a18..87d13b50 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -2,6 +2,11 @@ name: Windows on: push: pull_request: + +concurrency: + group: ${{ github.head_ref || github.sha }}-${{ github.workflow }} + cancel-in-progress: true + jobs: build: name: Build & Test