Skip to content

Run builds only on push to master and pull requests#423

Merged
garydgregory merged 2 commits intomasterfrom
fix/workflows-push
Apr 3, 2026
Merged

Run builds only on push to master and pull requests#423
garydgregory merged 2 commits intomasterfrom
fix/workflows-push

Conversation

@ppkarwasz
Copy link
Copy Markdown
Contributor

When a PR is created from a branch in the same repository, workflows run twice: once on push and once on pull_request.

This change fixes it, by only running workflows:

  • On a direct push to master,
  • On a Pull Request, regardless of the origin.

When a PR is created from a branch in the same repository, workflows run twice: once on `push` and once on `pull_request`.

This change fixes it, by only running workflows:

- On a direct push to `master`,
- On a Pull Request, regardless of the origin.
Copy link
Copy Markdown
Member

@garydgregory garydgregory left a comment

Choose a reason for hiding this comment

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

Hi @ppkarwasz

I added 2 comments/questions.

TY!

Replaces `"` with `'` as suggested in the review.
@garydgregory garydgregory changed the title Run build only on master and PRs Run builds only on push to master and pull requests Apr 3, 2026
@garydgregory garydgregory merged commit 0f5fdc9 into master Apr 3, 2026
9 checks passed
@garydgregory garydgregory deleted the fix/workflows-push branch April 3, 2026 10:51
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