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
commit 3e83c4a168
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

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: