Skip to content

Separate push and pull_request triggers #807

@hugo-vrijswijk

Description

@hugo-vrijswijk

I want to define this trigger in my workflow:

on:
  push:
    branches:
      - main
  pull_request:
    types: [synchronize, opened, reopened]

Which will run a build on my main branch, and for any pull request activity. Currently a lot of PR's will have the same job running twice (for push and pull_request activity). Is there a way to define this in the GHA plugin?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions