diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 286e99dc7..37e0db9ea 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,10 +9,10 @@ on: - '.vscode/**' - '**/*.md' -# Automatically cancel in-progress actions on the same branch +# Automatically cancel in-progress actions on the same branch (unless on main) concurrency: group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }} - cancel-in-progress: true + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} defaults: run: