mirror of https://github.com/icsharpcode/ILSpy.git
Browse Source
A branch with an open PR was built twice per push, once by the push trigger and once by the pull_request trigger, doubling the Actions cost of every PR iteration. The pull_request run is the canonical one (it tests the merge with the base branch), so a small gate job now asks the API whether the pushed branch has an open PR whose base would fire the pull_request trigger and skips the push build if so. Pushes to master and release/* are exempt because their runs publish packages; PRs targeting other branches are ignored because they never trigger a pull_request build that could replace the push one. Filtering fork PRs in the on: section instead was considered and rejected: trigger-level filters cannot see whether an open PR exists, and skipping the pull_request runs would have lost merge testing. Assisted-by: Claude:claude-fable-5:Claude Codepull/3942/head
2 changed files with 50 additions and 0 deletions
Loading…
Reference in new issue