only run github CI on latest commit of branch/PR (#20361)

based on [this](https://stackoverflow.com/a/72408109/10633874)
This commit is contained in:
metagn
2022-09-15 18:17:35 +03:00
committed by GitHub
parent 2b80ff2374
commit 3e83c4a168
2 changed files with 8 additions and 0 deletions

View File

@@ -30,6 +30,10 @@ on:
- '.github/workflows/ci_docs.yml'
- 'koch.nim'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
strategy:

View File

@@ -7,6 +7,10 @@ on:
- 'version-1-6'
- 'version-1-2'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
strategy: