Skip to content

A platform for community discussion. Free, open, simple.

DEV: Update workflow concurrency controls to use `github.ref_name` (#32524)

Alan Guo Xiang Tan427d4d2b53fc
diff --git a/.github/workflows/licenses.yml b/.github/workflows/licenses.yml
index e22f37c16e9..7fbfcf2b8c4 100644
--- a/.github/workflows/licenses.yml
+++ b/.github/workflows/licenses.yml
@@ -7,7 +7,7 @@ on:
- main
concurrency:
- group: licenses-${{ format('{0}-{1}', github.head_ref || github.run_number, github.job) }}
+ group: licenses-${{ format('{0}-{1}', github.ref_name, github.job) }}
cancel-in-progress: true
permissions:
diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml
index 11ed1d2ceae..4ab4e15b642 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.run_number, github.job) }}
+ group: linting-${{ format('{0}-{1}', github.ref_name, github.job) }}
cancel-in-progress: true
permissions:
diff --git a/.github/workflows/migration-tests.yml b/.github/workflows/migration-tests.yml
index 30271cdb5ec..82144f6c247 100644
--- a/.github/workflows/migration-tests.yml
+++ b/.github/workflows/migration-tests.yml
@@ -14,7 +14,7 @@ on:
- "migrations/**"
concurrency:
- group: migration-tests-${{ format('{0}-{1}', github.head_ref || github.run_number, github.job) }}
+ group: migration-tests-${{ format('{0}-{1}', github.ref_name, github.job) }}
cancel-in-progress: true
permissions:
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index c02ee0802e3..6265ca0e513 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -19,7 +19,7 @@ on:
- "migrations/**"
concurrency:
- group: tests-${{ format('{0}-{1}', github.head_ref || github.run_number, github.job) }}
+ group: tests-${{ format('{0}-{1}', github.ref_name, github.job) }}
cancel-in-progress: true
permissions: