Skip to content

Commit c8cb92f

Browse files
authored
chore(ci): do not cancel in progress tasks on the main branch (#513)
concurrency settings for the tests workflow currently stop tests if a new commit is merged. This is fine and works as intended but can look a bit weird in main since we usually have a bump commit right after, meaning most commits would end up having cancelled steps and look like CI is in red. This makes it so the rule doesn't apply on main and we run those tests for every commit.
1 parent 826cdea commit c8cb92f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/check-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ permissions:
1616

1717
concurrency:
1818
group: ${{ github.workflow }}-${{ github.ref }}
19-
cancel-in-progress: true
19+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
2020

2121
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
2222
jobs:

0 commit comments

Comments
 (0)