From f124fa458826308afc86cf364c509f857686ecfd Mon Sep 17 00:00:00 2001 From: Simon Sawicki Date: Sun, 19 Nov 2023 16:05:13 +0100 Subject: [PATCH] [ci] Concurrency optimizations (#8614) Authored by: Grub4K --- .github/workflows/core.yml | 4 ++++ .github/workflows/release-master.yml | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/core.yml b/.github/workflows/core.yml index 3c10fc17e..b1ae4ae76 100644 --- a/.github/workflows/core.yml +++ b/.github/workflows/core.yml @@ -3,6 +3,10 @@ on: [push, pull_request] permissions: contents: read +concurrency: + group: core-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: tests: name: Core Tests diff --git a/.github/workflows/release-master.yml b/.github/workflows/release-master.yml index 0208b3bef..0664137a9 100644 --- a/.github/workflows/release-master.yml +++ b/.github/workflows/release-master.yml @@ -10,7 +10,6 @@ on: - "pyinst.py" concurrency: group: release-master - cancel-in-progress: true permissions: contents: read