diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ca7a43a..ee602d8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,6 +13,12 @@ on: permissions: contents: read +# Cancel in-progress runs for pull requests when developers push +# additional changes +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} + jobs: test: name: test diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 989cade..d9d2bf6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,6 +9,12 @@ on: permissions: {} +# Cancel in-progress runs for when multiple PRs get merged +# in quickl succession. Ignore this for tag releases though. +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ !contains(github.ref, 'tags/')}} + jobs: build: name: Build Coder Desktop