DEV: Avoid cancelling in-progress tests for branches (#15101)

DEV: Avoid cancelling in-progress tests for branches (#15101)

diff --git a/.github/workflows/ember.yml b/.github/workflows/ember.yml
index 8a727a4..8c71481 100644
--- a/.github/workflows/ember.yml
+++ b/.github/workflows/ember.yml
@@ -7,7 +7,7 @@ on:
       - main
 
 concurrency:
-  group: ember-${{ format('{0}-{1}', github.head_ref, github.job) || format('{0}-{1}', github.ref, github.run_number) }}
+  group: ember-${{ format('{0}-{1}', github.head_ref || github.run_number, github.job) }}
   cancel-in-progress: true
 
 jobs:
diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml
index 11acb6e..b1e756e 100644
--- a/.github/workflows/linting.yml
+++ b/.github/workflows/linting.yml
@@ -7,7 +7,7 @@ on:
       - main
 
 concurrency:
-  group: linting-${{ format('{0}-{1}', github.head_ref, github.job) || format('{0}-{1}', github.ref, github.run_number) }}
+  group: linting-${{ format('{0}-{1}', github.head_ref || github.run_number, github.job) }}
   cancel-in-progress: true
 
 jobs:
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 4a760b1..7f52de1 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -7,7 +7,7 @@ on:
       - main
 
 concurrency:
-  group: tests-${{ format('{0}-{1}', github.head_ref, github.job) || format('{0}-{1}', github.ref, github.run_number) }}
+  group: tests-${{ format('{0}-{1}', github.head_ref || github.run_number, github.job) }}
   cancel-in-progress: true
 
 jobs:

GitHub sha: 1b5f26e0ab9b50af03c94f797791fc12e7bd94b4

This commit appears in #15101 which was approved by CvX. It was merged by pmusaraj.