diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 722527177f5..7ce2ce78ceb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,7 +24,7 @@ env: concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} - cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} + cancel-in-progress: ${{ !contains(github.ref, 'refs/heads/main') }} jobs: clang-format: