ci: drop pull_request trigger, push alone covers same-repo PRs
push (all branches) already fires for a PR branch on this repo; keeping pull_request too just ran every job twice on the same commit. GitHub still attaches the push-triggered run to the PR by SHA regardless of which event fired it. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
parent
c2cc773c7b
commit
c4ef989e1a
1 changed files with 7 additions and 5 deletions
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
|
|
@ -1,13 +1,15 @@
|
||||||
name: CI
|
name: CI
|
||||||
|
|
||||||
# Every push, on every branch — not just main — so build breakage shows up
|
# 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.
|
# on the first commit of a branch, not only once a PR targets main. No
|
||||||
# pull_request is kept alongside push for fork PRs, where push events never
|
# separate pull_request trigger: for a PR from a branch on this same repo,
|
||||||
# reach this 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:
|
on:
|
||||||
push:
|
push:
|
||||||
pull_request:
|
|
||||||
branches: [main]
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
DATABASE_URL: "postgresql://ci:ci@localhost:5432/batchcooking_ci?schema=public"
|
DATABASE_URL: "postgresql://ci:ci@localhost:5432/batchcooking_ci?schema=public"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue