From 5e7478f9f3d46db3a62a50028b711c0a10bc8180 Mon Sep 17 00:00:00 2001 From: Yorgos Date: Tue, 13 Oct 2026 15:55:02 +0300 Subject: [PATCH] chore: dedup workflow runs --- .github/workflows/build.yml | 5 +++++ .github/workflows/code-formatting.yml | 9 +++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f48e1e2..724e515 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,6 +12,11 @@ on: permissions: contents: read +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + # Cancel superseded PR runs; let every master run finish + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: build: name: Build package diff --git a/.github/workflows/code-formatting.yml b/.github/workflows/code-formatting.yml index 266254f..c70c189 100644 --- a/.github/workflows/code-formatting.yml +++ b/.github/workflows/code-formatting.yml @@ -3,12 +3,17 @@ name: code-formatting on: push: - branches-ignore: - - 'tmp**' + branches: + - master pull_request: branches-ignore: - 'tmp**' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + # Cancel superseded PR runs; let every master run finish + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: editorconfig: name: Check EditorConfig compliance