Skip to content

Restrict push CI to main branch #4971

@anuraaga

Description

@anuraaga

Currently, CI push events run on any branch except for some

https://github.com/open-telemetry/opentelemetry-python/blob/main/.github/workflows/test_0.yml#L8

This means that they run on the pushes to someone's fork as part of a PR. This doubles CI load with no reason and can increase notification spam for flaky builds. I couldn't find any obvious branch that needs CI events except for main, does it make sense to set CI to only run for main push to avoid forks?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions