From fcf4954610004527f86a01e6809605979644dfec Mon Sep 17 00:00:00 2001 From: Abhijeet Prasad Date: Wed, 28 Oct 2026 14:02:20 -0400 Subject: [PATCH] ci: keep main commit runs from cancelling --- .github/workflows/ci.yml | 4 ++-- AGENTS.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fbf65f51..ee97eb66 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,8 +10,8 @@ permissions: contents: read concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} - cancel-in-progress: true + group: ${{ github.workflow }}-${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && github.sha || github.event.pull_request.number || github.ref }} + cancel-in-progress: ${{ !(github.event_name == 'push' && github.ref == 'refs/heads/main') }} env: CARGO_TERM_COLOR: always diff --git a/AGENTS.md b/AGENTS.md index 74f22f17..28ea4158 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -146,8 +146,8 @@ workflows. `mise.toml` holds local-only mise hooks. CI builds and validates the plugin packages on Linux. It runs the JavaScript daemon client and the Pi and OpenCode unit tests, and builds, tests, and lints the Rust daemon, on Linux, macOS, and Windows. Pushes to `main` and manual runs -refresh the Rust build cache that pull requests restore. Concurrent runs for an -obsolete branch revision are cancelled. +refresh the Rust build cache that pull requests restore. Every push to `main` +runs independently; superseded pull request runs are cancelled. ## Secrets