Skip to content

Commit fcae1a9

Browse files
scott graysonscott grayson
authored andcommitted
Fix duplicate workflow runs by using branch name in concurrency group
1 parent cd86cbc commit fcae1a9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/phpstan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414
workflow_dispatch:
1515

1616
concurrency:
17-
group: ${{ github.workflow }}-${{ github.ref }}
17+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
1818
cancel-in-progress: true
1919

2020
jobs:

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ on:
1818
workflow_dispatch:
1919

2020
concurrency:
21-
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
21+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
2222
cancel-in-progress: true
2323

2424
jobs:

0 commit comments

Comments
 (0)