Skip to content

Suggestion for CI: Only run on push to master OR pull request #1726

@junderw

Description

@junderw

I was noticing that a lot of internal PRs (made by team members) were firing multiple CIs for push and pull_request.

In BitcoinJS we use the following.

on:
  push:
    branches:
      - master
  pull_request:

I have also considered adding a pattern matching for branches with the prefix with-ci/** (edit: looked up the actual syntax) in case we want to test the CI internally before making a PR... but in general we've just tested things out on PRs anyways so never needed it.

Any thoughts?

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