CI: push runs only on main; branches are tested through their pull request [skip ci]

A push of many branches at once (the migration pushed 100 of Atrium's) started
a run per branch and flooded the runners. Every pull request is still tested.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
admin
2026-11-30 16:39:21 +01:00
co-authored by Claude Opus 5.5
parent 699b341d71
commit db37a5d1e7
2 changed files with 4 additions and 2 deletions
+3 -2
View File
@@ -1,8 +1,9 @@
name: CI
on:
push:
# cascade/* branches are tested through their pull request (kaskada), not twice
branches-ignore: ["cascade/**"]
# main only: a branch is tested through its pull request (a push of many branches at once
# must not flood the runners)
branches: [main]
pull_request:
jobs:
+1
View File
@@ -12,6 +12,7 @@ name: deploy kit
# complete.
on:
push:
branches: [main] # main only; branches are tested through their PR
paths:
- "deploy/**"
- ".github/workflows/deploy-kit.yml"