Skip to content

Commit d40f627

Browse files
jrfnlgrogy
authored andcommitted
GH Actions: fix build cancelling
Fixes a wrong variable which would cause all builds branched off from the same branch `master` to be cancelled whenever a new branch was pushed, while the build cancelling should only act on a new push for the _actual_ branch pushed.
1 parent 6e51cb1 commit d40f627

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.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)