Skip to content

Commit 03ac0b0

Browse files
committed
fix github actions PR for all branches
1 parent 47801df commit 03ac0b0

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

.github/workflows/prs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
pull_request:
88

99
concurrency:
10-
group: ${{ github.head_ref }}
10+
group: "ci-${{ github.ref }}"
1111
cancel-in-progress: true
1212

1313
jobs:

lib/schema_dev/github_actions.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ module GithubActions
2727
pull_request: nil,
2828
},
2929
concurrency: {
30-
group: '${{ github.head_ref }}',
30+
group: 'ci-${{ github.ref }}',
3131
'cancel-in-progress': true,
3232
}
3333
}.freeze

spec/schema_dev/github_actions_spec.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
- master
3232
pull_request:
3333
concurrency:
34-
group: "${{ github.head_ref }}"
34+
group: ci-${{ github.ref }}
3535
cancel-in-progress: true
3636
jobs:
3737
test:
@@ -99,7 +99,7 @@
9999
- master
100100
pull_request:
101101
concurrency:
102-
group: "${{ github.head_ref }}"
102+
group: ci-${{ github.ref }}
103103
cancel-in-progress: true
104104
jobs:
105105
test:
@@ -180,7 +180,7 @@
180180
- master
181181
pull_request:
182182
concurrency:
183-
group: "${{ github.head_ref }}"
183+
group: ci-${{ github.ref }}
184184
cancel-in-progress: true
185185
jobs:
186186
test:
@@ -247,7 +247,7 @@
247247
- master
248248
pull_request:
249249
concurrency:
250-
group: "${{ github.head_ref }}"
250+
group: ci-${{ github.ref }}
251251
cancel-in-progress: true
252252
jobs:
253253
test:
@@ -360,7 +360,7 @@
360360
- master
361361
pull_request:
362362
concurrency:
363-
group: "${{ github.head_ref }}"
363+
group: ci-${{ github.ref }}
364364
cancel-in-progress: true
365365
jobs:
366366
test:
@@ -459,7 +459,7 @@
459459
- master
460460
pull_request:
461461
concurrency:
462-
group: "${{ github.head_ref }}"
462+
group: ci-${{ github.ref }}
463463
cancel-in-progress: true
464464
jobs:
465465
test:
@@ -582,7 +582,7 @@
582582
- master
583583
pull_request:
584584
concurrency:
585-
group: "${{ github.head_ref }}"
585+
group: ci-${{ github.ref }}
586586
cancel-in-progress: true
587587
jobs:
588588
test:
@@ -699,7 +699,7 @@
699699
- master
700700
pull_request:
701701
concurrency:
702-
group: "${{ github.head_ref }}"
702+
group: ci-${{ github.ref }}
703703
cancel-in-progress: true
704704
jobs:
705705
test:

0 commit comments

Comments
 (0)