ci: cancel current runs on new trigger

parent 07b829c8
...@@ -10,6 +10,10 @@ on: ...@@ -10,6 +10,10 @@ on:
branches: branches:
- master - master
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs: jobs:
tests: tests:
name: Run tests name: Run tests
......
...@@ -5,6 +5,10 @@ on: ...@@ -5,6 +5,10 @@ on:
pull_request_target: pull_request_target:
types: [opened, synchronize] types: [opened, synchronize]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs: jobs:
add-to-project: add-to-project:
name: Add to project name: Add to project
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment