Skip to content

fix: prevent CI jobs from running twice on PRs#67

Merged
timini merged 1 commit intomainfrom
fix/ci-duplicate-runs
Mar 1, 2026
Merged

fix: prevent CI jobs from running twice on PRs#67
timini merged 1 commit intomainfrom
fix/ci-duplicate-runs

Conversation

@timini
Copy link
Owner

@timini timini commented Mar 1, 2026

Summary

  • Fix on: [push, pull_request] trigger that caused every CI job to run twice when pushing to a branch with an open PR
  • Restrict push trigger to main only (needed for Docker image publishing); pull_request covers PR branches

Closes #66

Test plan

  • This PR itself should show each job running only once (not duplicated)

🤖 Generated with Claude Code

The `on: [push, pull_request]` trigger caused both events to fire when
pushing to a branch with an open PR, duplicating every CI job. Restrict
`push` to main only; PRs are covered by the `pull_request` trigger.

Closes #66

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@timini timini merged commit 7c07dc7 into main Mar 1, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI jobs run twice each in a MR

1 participant