From 78011851620f84d8df3a2deadbd06af8dac37338 Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Thu, 14 Sep 2023 21:24:19 +0200 Subject: [PATCH] ci: use `head_ref` for concurrency group Use the head_ref value for the concurrency group on `ci-privileged` rather than the ref, so that the main ref is not used and cancelling across pull requests and the main branch Backport https://github.com/angular/angular/pull/51784 to the CLI. (cherry picked from commit e6e6d0c6893f6f491f3903518121822c962fb019) --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e29db40e4d87..9ad60453e9fd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,7 +9,7 @@ on: types: [opened, synchronize, reopened] concurrency: - group: ${{ github.workflow }}-${{ github.ref }} + group: ${{ github.workflow }}-${{ github.head_ref }} cancel-in-progress: true permissions: {}