Skip to content

Limit Build workflow to main branch, Fix duplicate runs on PRs#44

Merged
danielchalmers merged 1 commit into
mainfrom
copilot/fix-build-running-twice
Jun 3, 2026
Merged

Limit Build workflow to main branch, Fix duplicate runs on PRs#44
danielchalmers merged 1 commit into
mainfrom
copilot/fix-build-running-twice

Conversation

Copilot AI commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

The Build workflow was firing on every push and every pull request, which caused it to run twice for the same PR branch updates. This narrows the trigger scope so CI runs only for main pushes and main pull requests.

  • Workflow trigger scope

    • Restrict push to main
    • Restrict pull_request to main
  • Result

    • Prevents duplicate Build executions on non-main PR branches
    • Keeps Build aligned with the branch that actually drives release-ready CI
on:
  push:
    branches: [ main ]
  pull_request:
    branches: [ main ]

@danielchalmers danielchalmers changed the title Fix duplicate Build workflow runs on PRs Limit Build workflow to main branch, Fix duplicate runs on PRs Jun 3, 2026
@danielchalmers danielchalmers marked this pull request as ready for review June 3, 2026 18:39
@danielchalmers danielchalmers merged commit b3954e9 into main Jun 3, 2026
1 check passed
@danielchalmers danielchalmers deleted the copilot/fix-build-running-twice branch June 3, 2026 18:39
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.

2 participants