forked from mirror/crumbs-original
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.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user