From 2774da602adf967875f6f50ab37dd306e82a91ab Mon Sep 17 00:00:00 2001 From: tomaszbk Date: Wed, 7 Oct 2026 20:12:49 -0300 Subject: [PATCH] ci: reduce duplicate runs and isolate concurrency groups --- .github/workflows/ci.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2464b1db..96513e7e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,12 +2,16 @@ name: CI on: push: + branches: [master] pull_request: + workflow_dispatch: schedule: - cron: '31 1,12 * * *' concurrency: - group: ${{ github.workflow }}-${{ github.ref }} + # Keep each master commit and manual run; cancel in-progress runs only for PRs. + # Scheduled runs have their own group so they do not block push runs. + group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event_name == 'push' && github.sha || github.event_name == 'workflow_dispatch' && github.run_id || github.ref }} cancel-in-progress: ${{ github.event_name == 'pull_request' }} jobs: