-
Notifications
You must be signed in to change notification settings - Fork 51
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
A way to set specific branches triggered on push (commit). #664
Comments
I have implemented a way to process regex for the I would suggest trying: - <<: *copr
# Run on push to any branch.
trigger: commit
branch: '^(?!.*master)' |
Thanks for the suggestion. Why is it the |
Checking the Python regular expression syntax |
I experimented.
|
It seems I was able to run the CI on the push on a branch (
|
Thanks for letting me know, I'll transfer it to the repo with docs, so it can be properly documented. ad the suggested regex, it was just a guess :) |
Okay. Thanks for implementing this! |
Description
I want to run Packit as a service on push for the specific branches. I want to trigger any branches except
master
branch. Below is my current.packit.yml
configuration. Is there a way to do it? I check the https://dashboard.packit.dev/pipelines page. But it seems nothing triggers in the push for a branch with the following configuration. Does the currentbranch:
syntax support the regular expression?Benefit
Users can test their commit by running on CI before sending the PR to the target repository.
Importance
GitHub Actions have the feature to set the triggered branches using the wildcard by
branches
andbranches-ignore
syntax.https://docs.github.com/en/actions/using-workflows/triggering-a-workflow#using-filters
https://docs.github.com/en/actions/using-workflows/triggering-a-workflow#example-excluding-branches
Workaround
Participation
The text was updated successfully, but these errors were encountered: