mirror of
https://github.com/ThePhaseless/Byparr.git
synced 2026-09-24 22:03:30 +01:00
fix(ci): scope push trigger to main to avoid duplicate runs
push: branches: ["*"] matched feature branches, so every push to a branch with an open PR fired both a 'push' and a 'pull_request' event. Their concurrency groups differ (refs/heads/<branch> vs refs/pull/<n>/merge), so cancel-in-progress could not dedup them — the full multi-arch build ran twice on each push, doubling CI minutes. Scope push to branches: ["main"]; pull_request remains the validator for feature branches. Tag pushes (v*.*.*), schedule, and workflow_dispatch are under separate filters and are unaffected.
This commit is contained in:
@@ -9,7 +9,7 @@ on:
|
||||
schedule:
|
||||
- cron: "25 0 * * *"
|
||||
push:
|
||||
branches: ["*"]
|
||||
branches: ["main"]
|
||||
# Publish semver tags as releases.
|
||||
tags: ["v*.*.*"]
|
||||
paths:
|
||||
|
||||
Reference in New Issue
Block a user