From dbade3595e784570e21be0323872ccf7b46fd05c Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 9 Jun 2026 18:58:19 +0000 Subject: [PATCH] ci: run on push to main only to avoid duplicate PR runs A push to a claude/** branch with an open PR triggered both the push and pull_request events. The concurrency group keys on github.ref, which differs between the two (refs/heads/... vs refs/pull/N/merge), so neither run was cancelled and the whole pipeline (including E2E) ran twice. Drop claude/** from the push trigger; branch work is now validated once via the pull_request event. --- .github/workflows/ci.yml | 2 +- CLAUDE.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0c78d5a..6c322a1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,7 +2,7 @@ name: CI on: push: - branches: [main, 'claude/**'] + branches: [main] pull_request: branches: [main] workflow_call: diff --git a/CLAUDE.md b/CLAUDE.md index c9acd38..26c1663 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -146,7 +146,7 @@ A `Makefile` wraps all common tasks for tool-agnostic usage. Run `make help` to GitHub Actions with two workflows: -**CI** (`.github/workflows/ci.yml`) — runs on push to `main`/`claude/**` and PRs to `main`: +**CI** (`.github/workflows/ci.yml`) — runs on push to `main` and PRs to `main` (branch work is validated once via the PR event, avoiding duplicate push+PR runs): 1. **Lint & Type Check** — `pnpm check` 2. **Unit Tests** — `pnpm test:unit` 3. **Build** — `pnpm build` (depends on steps 1+2)