Skip to content

Commit 4f26ef2

Browse files
committed
GH Actions: fix concurrency
The `concurrency` setting as-it-were, was cancelling builds which shouldn't be cancelled due to the "unique ID" including the `head_ref` (base branch), not the `ref` (current commit). I believe this change will fix that.
1 parent 9cdd423 commit 4f26ef2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/cs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
# Cancels all previous workflow runs for the same branch that have not yet completed.
1010
concurrency:
1111
# The concurrency group contains the workflow name and the branch name.
12-
group: ${{ github.workflow }}-${{ github.head_ref }}
12+
group: ${{ github.workflow }}-${{ github.ref }}
1313
cancel-in-progress: true
1414

1515
jobs:

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
# Cancels all previous workflow runs for the same branch that have not yet completed.
1010
concurrency:
1111
# The concurrency group contains the workflow name and the branch name.
12-
group: ${{ github.workflow }}-${{ github.head_ref }}
12+
group: ${{ github.workflow }}-${{ github.ref }}
1313
cancel-in-progress: true
1414

1515
jobs:

0 commit comments

Comments
 (0)