Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Do not run the same workflow concurrently on non-main branches

Kirill Bulatovb94c335605c3
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 8ac2912424b..5ba25dbf947 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -11,6 +11,11 @@ on:
branches:
- "**"
+concurrency:
+ # Allow only one workflow per any non-`main` branch.
+ group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.ref_name == 'main' && github.sha || 'anysha' }}
+ cancel-in-progress: true
+
env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0