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 run push CI on main branch #25

Merged
merged 1 commit into from
Oct 21, 2023

Conversation

boomanaiden154
Copy link
Collaborator

Currently the github actions workflow runs whenever something is pushed to a branch or against any pull request. This means that if a branch is pushed to the main google/gematria repository and a PR is opened against google/gematria:main, there will be duplicate jobs, one for the push event and one for the pull request event. This patch fixes this behavior by restricting the push event to the main branch.

Currently the github actions workflow runs whenever something is pushed
to a branch or against any pull request. This means that if a branch is
pushed to the main google/gematria repository and a PR is opened against
google/gematria:main, there will be duplicate jobs, one for the push
event and one for the pull request event. This patch fixes this behavior
by restricting the push event to the main branch.
@ondrasej
Copy link
Collaborator

Thanks for cleaning it up!

@boomanaiden154 boomanaiden154 merged commit 2574292 into google:main Oct 21, 2023
5 of 6 checks passed
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