[CI] Use GitHub Actions concurrency setting

When a build is triggered, this cancels any current
builds of the same branch or pull request.
This commit is contained in:
Mat Sutcliffe
2021-09-29 22:28:16 +01:00
parent 2d8437c348
commit d3a63ad4de

View File

@@ -8,6 +8,10 @@ on:
- readthedocs
pull_request:
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
env:
do_vatsim_key: ${{ github.event_name == 'push' }}
do_symbols: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/heads/develop/') }}