diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8158311..f6faf44 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,13 +1,15 @@ name: CI # Every push, on every branch — not just main — so build breakage shows up -# on the first commit of a branch, not only once a PR targets main. -# pull_request is kept alongside push for fork PRs, where push events never -# reach this repo. +# on the first commit of a branch, not only once a PR targets main. No +# separate pull_request trigger: for a PR from a branch on this same repo, +# push already fires on that branch, and GitHub attaches the run to the PR +# by commit SHA regardless of which event triggered it — adding +# pull_request too would just run every job twice per push. (Re-add it, +# scoped to forks, only if this repo starts accepting fork PRs — push +# events from a fork never reach here.) on: push: - pull_request: - branches: [main] env: DATABASE_URL: "postgresql://ci:ci@localhost:5432/batchcooking_ci?schema=public"