Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only build on push, not on pull_request too #235

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sambostock
Copy link
Contributor

Listening for both events triggers a redundant build. All PRs will have involved pushing a branch, so the build will have already been triggered. There is no need to trigger it again.

Listening for both events triggers a redundant build. All PRs will have
involved pushing a branch, so the build will have already been
triggered. There is no need to trigger it again.
@lugray
Copy link
Contributor

lugray commented Feb 10, 2021

This is a public repo. For external contributors, their pushes don't go to this repo, they go to their own clone, and so don't trigger CI. Once they open a PR on our repo, the PR triggers CI. For internal developers, builds on push are convenient to see failures before opening a PR.

@dylanahsmith
Copy link
Contributor

Here is how I accomplished this in the public identity_cache repo: Shopify/identity_cache@4a55be5

Base automatically changed from master to main March 15, 2021 17:09
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.

None yet

3 participants