Skip to content

Don't create CI run if pull_request is from same repo #161

@emteknetnz

Description

@emteknetnz

In some scenarios a pull-request isn't created from a fork of the repo, instead it done from the same repo

Because there are both pull_request and push triggers on the jobs, two essentially identical CI jobs are run. While this has no real cost of open-source repos, on private repos it wastes github action credits

Acceptance criteria

  • Detect if a pull request originates from a fork or the same repository.
  • Prevent duplicate CI jobs by ignoring the push trigger for internal PRs.
  • This logic is applied to all supported repos (i.e. use shared ci.yml or use module standardiser)

PRs

Module standariders PRs

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions