Skip to content

Commit 46a1db4

Browse files
committed
Apply concurrency for GHA workflow pull_requests envents only
rubocop/rubocop#11414
1 parent 7dc5ed7 commit 46a1db4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/linting.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Linting
22
on:
33
- pull_request
44
concurrency:
5-
group: ${{ github.workflow }}-${{ github.ref }}
5+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
66
cancel-in-progress: true
77
jobs:
88
yamllint:

.github/workflows/spell_checking.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Spell Checking
33
on: [pull_request]
44

55
concurrency:
6-
group: ${{ github.workflow }}-${{ github.ref }}
6+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
77
cancel-in-progress: true
88

99
jobs:

0 commit comments

Comments
 (0)