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

GHA: run ci only on 'main' branch pushes #731

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

Conversation

deronnax
Copy link
Contributor

two avoid CI running twice, once on branch push and another time on pull requests.

@@ -10,7 +10,7 @@ on:
pull_request:
push:
branches:
- '*'
- 'main'
Copy link
Collaborator

Choose a reason for hiding this comment

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

It should also be run on hotfix branches, so I suggest adding something like - '[0-9]+.[0-9]+.x'. Make sure you test this on a sandbox repo though, my suggestion might be wrong.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hmmm hotfix branches still go through a pull request, am I wrong? If that's the case, we don't need to add them in branches

Copy link
Collaborator

Choose a reason for hiding this comment

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

Changes made in hotfix branches do go through a pull request, but the release itself is a direct push to the hotfix branch, just like the release of a new .0 version is a direct push to main.

@deronnax deronnax self-assigned this Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants