]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
github: separate concurrency group per event for kernel and packages 23283/head
authorHauke Mehrtens <hauke@hauke-m.de>
Sun, 10 May 2026 14:34:54 +0000 (16:34 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Mon, 11 May 2026 13:36:58 +0000 (15:36 +0200)
Manual workflow_dispatch and push share the same ref on main, so
they previously landed in the same concurrency group
'Build Kernel-refs/heads/main' (and the equivalent for the packages
workflow). With cancel-in-progress: false for non-PR events, only
one run can be pending per group: a newer queued run cancels the
older pending one.

That made the manual trigger unreliable in both directions. A push
landing while a dispatch was queued displaced the dispatch (so the
ccache reseed never ran), and dispatching while a push was queued
displaced the push (so the legitimate per-commit build was lost).

Adding github.event_name to the concurrency group puts pushes,
dispatches, and pull_requests in separate buckets on the same ref,
so they no longer compete with each other.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Link: https://github.com/openwrt/openwrt/pull/23283
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
.github/workflows/kernel.yml
.github/workflows/packages.yml

index d45ed6f0fc3603b47c3d9b75237ceb81593bf4f7..c57b0e470a5d3eb3971803af342e082de56b6bf6 100644 (file)
@@ -25,7 +25,7 @@ permissions:
   contents: read
 
 concurrency:
-  group: ${{ github.workflow }}-${{ github.ref }}
+  group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
   cancel-in-progress: ${{ github.event_name == 'pull_request' }}
 
 jobs:
index f26b0ee94e8f81b6c7007946791b25cb3dcfa325..6ceb3e46cc22ad808649e311a2f9c71074b5d28d 100644 (file)
@@ -25,7 +25,7 @@ permissions:
   contents: read
 
 concurrency:
-  group: ${{ github.workflow }}-${{ github.ref }}
+  group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
   cancel-in-progress: ${{ github.event_name == 'pull_request' }}
 
 jobs: