From d3a63ad4de7fbc9d48bba5bcbc3a3090a8689391 Mon Sep 17 00:00:00 2001 From: Mat Sutcliffe Date: Wed, 29 Sep 2021 22:28:16 +0100 Subject: [PATCH] [CI] Use GitHub Actions concurrency setting When a build is triggered, this cancels any current builds of the same branch or pull request. --- .github/workflows/build.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ece049342..fcc3b3651 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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/') }}