From a5e9aafe2d6d2fd0436400c80b7a4cb8682b22b3 Mon Sep 17 00:00:00 2001 From: Commanderx-code Date: Thu, 24 Sep 2026 03:00:38 -0400 Subject: [PATCH] Keep push and manual CI runs from cancelling each other The concurrency group was keyed only on the ref, so an arch_release dispatch on main cancelled the in-progress push run for the same commit. Key the group on the event too, and only cancel superseded pull request runs so main and tag runs always complete. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/linux-packages.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/linux-packages.yml b/.github/workflows/linux-packages.yml index 7e7e5bb..ce0d585 100644 --- a/.github/workflows/linux-packages.yml +++ b/.github/workflows/linux-packages.yml @@ -12,9 +12,11 @@ on: default: false permissions: contents: read +# Manual runs never share a group with pushes, and only superseded pull request runs are +# cancelled, so every commit on main and every tag keeps a complete result. concurrency: - group: linux-packages-${{ github.ref }} - cancel-in-progress: true + group: linux-packages-${{ github.event_name }}-${{ github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} jobs: # Rust tests run as a normal user; containers run as root, which masks permission checks. tests: