# Do not run the same workflow concurrently on non-main branches \(\#3518\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/ebddb612c894e8893b52893a26901d2e860b91b1)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: ebddb612c894e8893b52893a26901d2e860b91b1

Requested commit: ebddb612c894e8893b52893a26901d2e860b91b1

Commit: ebddb612c894e8893b52893a26901d2e860b91b1

Tree: 25fed97d727dc968a466bbc59f6f13de51a2e36f

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Do not run the same workflow concurrently on non-main branches (#3518)

<img width="1376" alt="image"
src="https://github.com/zed-industries/zed/assets/2690773/681cca85-e1b9-4a99-8363-60c931ba1393">

For any push (or force-push) into a branch, a separate CI workflow is
run.
This is rather worker-consuming, esp. given the fact that GitHub will
wait for the last job to update PR's status.
So cancel every old job for the same branch if it's not `main`.
CI run on `main` might catch a regression brought in by specific PR
merged, so run CI on every commit due to that.


Release Notes:

- N/A
```

## Parents

- [62c41e226b492a6aaa6f105ec03e2cfa785c2e60](https://git.cafe/gitcafe/zed/commit/62c41e226b492a6aaa6f105ec03e2cfa785c2e60?format=markdown)

- [b94c335605c334c24221d53f04ba5af46d304a44](https://git.cafe/gitcafe/zed/commit/b94c335605c334c24221d53f04ba5af46d304a44?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/ebddb612c894e8893b52893a26901d2e860b91b1?format=markdown)
