Browse Source

Configure the concurrency to abort any preceding GHA runs in progress

Akinori MUSHA 2 years ago
parent
commit
90b1fa1f6e
1 changed files with 4 additions and 0 deletions
  1. 4 0
      .github/workflows/ci.yml

+ 4 - 0
.github/workflows/ci.yml

@@ -4,6 +4,10 @@ on:
   push:
   pull_request:
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+  cancel-in-progress: true
+
 jobs:
   run-tests:
     name: ${{ matrix.os }} ruby-${{ matrix.ruby }} ${{ matrix.database_adapter }}