Skip to content

Commit f9f6db5

Browse files
committed
perf: set concurrency limits to reduce cost and improve dx
Without this it means that, for example, if I push a change to a PR then shortly push again this workflow will be running twice. This change will cancel the old run before starting the new one, which reduces the overall actions cost and DX as you don't have extra runs
1 parent c2399d5 commit f9f6db5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/verify.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ on:
1111
permissions:
1212
contents: read
1313

14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.ref }}
16+
cancel-in-progress: true
17+
1418
jobs:
1519
test:
1620
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)