Browse Source

Cancel running GH action on update of PR branch

Signed-off-by: Steffen Jaeckel <[email protected]>
Steffen Jaeckel 11 months ago
parent
commit
9eef89c5a4
1 changed files with 4 additions and 0 deletions
  1. 4 0
      .github/workflows/main.yml

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

@@ -12,6 +12,10 @@ on:
       - develop
       - /^release\/.*$/
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+  cancel-in-progress: true
+
 jobs:
   Docs:
     runs-on: ubuntu-20.04