Skip to content

Running GitHub Workflows duplicate events: push and pull_request #2891

Open

Description

@grayside

The GitHub Workflow template runs for each set of samples on push and pull_request.

Based on my reading of the syntax documentation, pull_request is necessary for forks.

It looks like folks contributing from a branch in the repository would trigger duplicate tests. Looking at some data, I don't see signs of duplicate work but documented points like https://docs.github.com/en/actions/using-workflows/triggering-a-workflow#using-multiple-events indicate that there should be.

Action Items from this issue should be one of:

  • Removing push as an event trigger from each config and the template
  • Adding an in-line comment to each config and the template explaining why we use both

@sofisl could you provide some insight into why we have both triggering events in the config?

Activity

  1. self-assigned this
    on Nov 29, 2022
  2. added
    samples
    on Nov 29, 2022
  3. added
    type: cleanup
    priority: p2
    on Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

priority: p2samplestype: cleanup

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions