Skip to content

fix(workflow): avoid skipping CI for same-repo PRs from unbuilt branches#3003

Open
sevoku wants to merge 2 commits intomainfrom
dev/sevoku/fix-workflow-branch-conflicts
Open

fix(workflow): avoid skipping CI for same-repo PRs from unbuilt branches#3003
sevoku wants to merge 2 commits intomainfrom
dev/sevoku/fix-workflow-branch-conflicts

Conversation

@sevoku
Copy link
Copy Markdown
Member

@sevoku sevoku commented Apr 28, 2026

The job-level if previously skipped all pull_request runs for same-repo PRs, assuming a push run already covered the head SHA. But the push filter only matches main, rel/*, and dev/**, so same-repo PRs from other head branches (e.g. feature/*) ended up with no CI at all. Only skip when the head branch is actually covered by push.branches.

Also scope the concurrency group by head repo + PR number for pull_request events so two forks pushing branches with the same name do not cancel each other.

The job-level `if` previously skipped all `pull_request` runs for same-repo
PRs, assuming a `push` run already covered the head SHA. But the `push`
filter only matches `main`, `rel/*`, and `dev/**`, so same-repo PRs from
other head branches (e.g. `feature/*`) ended up with no CI at all. Only
skip when the head branch is actually covered by `push.branches`.

Also scope the concurrency group by head repo + PR number for
`pull_request` events so two forks pushing branches with the same name
do not cancel each other.
@sevoku sevoku requested a review from a team as a code owner April 28, 2026 12:35
@sevoku sevoku requested a review from Copilot April 28, 2026 12:38
mkrueger
mkrueger previously approved these changes Apr 28, 2026
@sevoku sevoku marked this pull request as draft April 28, 2026 12:44
@sevoku sevoku marked this pull request as ready for review April 28, 2026 12:49
@sevoku sevoku requested a review from mkrueger April 28, 2026 12:59
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the primary GitHub Actions workflow to ensure CI is not accidentally skipped for same-repo pull requests whose head branches are not covered by the workflow’s push.branches filters, and to prevent concurrency collisions between forks.

Changes:

  • Refines the job-level if condition so same-repo PRs are only skipped when a corresponding push build would have run for that head branch.
  • Adjusts the concurrency.group for pull_request events to include head repo + PR number, avoiding cross-fork cancellations.

Comment thread .github/workflows/main.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants